Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. package javaTextGame;
  2. import scala.collection.JavaConverters._;
  3. import java.util.Scanner;
  4.  
  5.  
  6. public class Choice {
  7. private String choice;
  8.  
  9. Choice(String c){
  10. choice = c;
  11. }
  12. void printOut(){System.out.println(choice);}
  13. }
  14.  
  15. public class Situation{
  16. private String message;
  17.  
  18. Situation(String m){
  19. message = m;
  20. }
  21. void printOut(){System.out.println(message);}
  22.  
  23. }
  24.  
  25.  
  26. public class Game {
  27.  
  28. public Scanner scan = new Scanner(System.in);
  29. public String message(String msg) {System.out.print(msg)
  30. };
  31.  
  32. public Boolean gameOver {false;}
  33.  
  34. def main(args: Array[String] ): Unit = {
  35. Game.message("Hejsan!")
  36.  
  37. }
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement