Created
October 2, 2017 16:55
-
-
Save PocasPedro/0471fa32b1b8f599af7a341287a1c6bb to your computer and use it in GitHub Desktop.
Java Fundaments for Kids - Exercise 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Program description | |
*/ | |
public class PrintName { | |
public static void main(String[] args) { | |
//Message | |
String name = "Pedro"; | |
String surname = "Almeida"; | |
print(name, surname); | |
} | |
public static void print(String msg1, String msg2){ | |
// Print variable message to the terminal window. | |
System.out.println(msg1); | |
System.out.println(msg2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment