-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyname.java
39 lines (39 loc) · 1.72 KB
/
Myname.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* Name: Bill Mao
* Date: 9/7/2017
* School: East Chapel Hill High School
* Program: Prog3a Program
* Description: This program prints an ascii art version of my first name, Bill.
* It accomplishes this by using a println function for each line of text that needs to be printed.
* Difficulties: I originally intended to do this project usinng line breaks, but I swtiched to multiple print functions.
* This is because it is much easier to visualise how the characters would look with multiple print functions,
* and it would be easier to change and maintain.
* What I Learned: I learned how to format and space characters in the println function.
*/
public class Myname
{
public static void main (String[] args)
//This method prints out an ascii art name line by line
{
System.out.println("******** ********* * *");
System.out.println("* * * * *");
System.out.println("* * * * *");
System.out.println("* * * * *");
System.out.println("******** * * *");
System.out.println("* * * * *");
System.out.println("* * * * *");
System.out.println("* * * * *");
System.out.println("******** ********* ******** ********");
}
}
/*Sample Output:
* ******** ********* * *
* * * * * *
* * * * * *
* * * * * *
* ******** * * *
* * * * * *
* * * * * *
* * * * * *
* ******** ********* ******** ********
*/