Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class StudentenNummer
  3. {
  4. public static void main(String[]args)
  5. {
  6. String studentennummer, naam, adres, richting;
  7. Scanner keyboard = new Scanner(System.in);
  8. System.out.println("Je naam?");
  9. naam = keyboard.nextLine();
  10. System.out.println("Je studentennummer?");
  11. studentennummer = keyboard.nextLine();
  12. System.out.println("Je adres?");
  13. adres = keyboard.nextLine();
  14. System.out.println("Je richting?");
  15. richting = keyboard.nextLine();
  16. System.out.println(naam + " heeft studentennummer " + studentennummer + ".\n"
  17. + "Zijn adres is " + adres +
  18. " en hij is ingeschreven in de volgende richting "
  19. + richting + ".");
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement