For your homework this week, check out number four, at the bottom of the post, here: https://www.lol-101.com/classrooms/introduction-to-java/1-7-what-is-output-what-is-output-formatting-what-are-escape-sequences. Try to create your own animal greeting that looks like the example greeting, and have some fun with that. If you are really stuck, then try to just print out the example animal greeting. Make sure you use escape sequences when you need to!
top of page
bottom of page
class Main { public static void main(String[] args) { System.out.println(" /\\_/\\ -----"); System.out.println("( ' ' ) /Hello\\"); System.out.println("( - ) <Junior|"); System.out.println(" | | | \\Coder!/"); System.out.println(" (_|_) -----"); } }
class Main { public static void main(String[] args) { System.out.println("( ͡° ͜ʖ ͡°) -----"); System.out.println("( ͡° ͜ʖ ͡°) / hello \\"); System.out.println("( ͡° ͜ʖ ͡°) < bobby |"); System.out.println("( ͡° ͜ʖ ͡°) \\ bob! /"); System.out.println("( ͡° ͜ʖ ͡°) -----"); System.out.println(""); System.out.println(""); } }
class Main {
public static void main(String[] args) {
System.out.println(" /\\_/\\ -----");
System.out.println("( ' ' ) / Hello \\");
System.out.println("( - ) < Junior |");
System.out.println(" | | | \\ Coder!/");
System.out.println("(__|__) -----");
}
}
class Main {
public static void main(String[] args) {
System.out.println(" ~ Hello❤ ");
System.out.println("( v ) /");
System.out.println("( )");
System.out.println(" / \\ ");}
}
class Main {
public static void main(String[] args) {
System.out.println(" ~ ");
System.out.println("( v )-'sup dude.");
System.out.println("( )");
System.out.println(" ^ ^ ");}
}
code:
class Main { public static void main(String[] args) { System.out.println(" /\\_/\\ -----"); System.out.println("( ' ' ) / hello \\"); System.out.println("( - ) < Junior |"); System.out.println("| | | \\ coder!/"); System.out.println("(__|__) -----"); System.out.println(""); System.out.println(""); } }