forked from Steffy72/Java-Lab-001
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloYoda.java
More file actions
19 lines (18 loc) · 585 Bytes
/
HelloYoda.java
File metadata and controls
19 lines (18 loc) · 585 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class HelloYoda {
/**
* Returns a String containing a Yoda ASCII art and quote.
*
* @return Yoda Face and Quote as a String.
*/
static String yoda() {
return """
.--. Try not.
::\\`--._,'.::.`._.--'/:: Do or do not.
::::. ` __::__ ' .:::: There is no try.
::::::-:.`'..`'.:-::::::
::::::::\\ `--' /:::::::: -Yoda""";
}
public static void main(String[] args) {
System.out.println(yoda());
}
}