Challenge:
public class lab1_03 {
public static void main(String[] args) {
System.out.println("* * * *********");
System.out.println("* * * * * *");
System.out.println("* * * * * *");
System.out.println("* * * ****** *");
System.out.println("* * * * * *");
System.out.println("* ** * * *");
System.out.println("* * * * *");
}
}
The basic output statement is Java is System.out.println() as we saw in our previous section. When printing variables or statements in Java, everything that is surrounded by " " will be the literal part and gets printed exactly(Including space).
No comments:
Post a Comment