Skip to content

Instantly share code, notes, and snippets.

@PocasPedro
Created October 2, 2017 16:55
Show Gist options
  • Save PocasPedro/0471fa32b1b8f599af7a341287a1c6bb to your computer and use it in GitHub Desktop.
Save PocasPedro/0471fa32b1b8f599af7a341287a1c6bb to your computer and use it in GitHub Desktop.
Java Fundaments for Kids - Exercise 5
/**
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