Chapter 2
This commit is contained in:
parent
2b3da4d6fa
commit
5073cfb137
14
src/main/java/tech/nevets/STWelcome.java
Normal file
14
src/main/java/tech/nevets/STWelcome.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package tech.nevets;
|
||||||
|
|
||||||
|
public class STWelcome {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Welcome to Java Programming.");
|
||||||
|
System.out.print("I think this class ");
|
||||||
|
System.out.println("will be awesome!");
|
||||||
|
System.out.println("I promise not to cheat in this class");
|
||||||
|
System.out.println("If caught, I will be withdrawn with an F grade");
|
||||||
|
System.out.println("Como estas hoy");
|
||||||
|
System.out.println("J'espere que tu aimes ce cours");
|
||||||
|
System.out.println("Byona gironata");
|
||||||
|
}
|
||||||
|
}
|
22
src/main/java/tech/nevets/STWelcomeAlgorithm.txt
Normal file
22
src/main/java/tech/nevets/STWelcomeAlgorithm.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// This program prints text to console
|
||||||
|
// Steven Tracey
|
||||||
|
|
||||||
|
//class declarator
|
||||||
|
//main method
|
||||||
|
|
||||||
|
Display "Welcome to Java Programming."
|
||||||
|
Go to next line
|
||||||
|
Display "I think this class "
|
||||||
|
Display "will be awesome!"
|
||||||
|
Go to next line
|
||||||
|
Display "I promise not to cheat in this class"
|
||||||
|
Go to next line
|
||||||
|
Display "If caught, I will be withdrawn with an F grade"
|
||||||
|
Go to next line
|
||||||
|
Display "Como estas hoy"
|
||||||
|
Go to next line
|
||||||
|
Display "J'espere que tu aimes ce cours"
|
||||||
|
Go to next line
|
||||||
|
Display "Byona gironata"
|
||||||
|
|
||||||
|
End of program
|
Loading…
Reference in New Issue
Block a user