Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaTextGame;
- import scala.collection.JavaConverters._;
- import java.util.Scanner;
- public class Choice {
- private String choice;
- Choice(String c){
- choice = c;
- }
- void printOut(){System.out.println(choice);}
- }
- public class Situation{
- private String message;
- Situation(String m){
- message = m;
- }
- void printOut(){System.out.println(message);}
- }
- public class Game {
- public Scanner scan = new Scanner(System.in);
- public String message(String msg) {System.out.print(msg)
- };
- public Boolean gameOver {false;}
- def main(args: Array[String] ): Unit = {
- Game.message("Hejsan!")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement