Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1. import java.util.Random;
  2. import java.util.Scanner;
  3.  
  4. public class LingoTest {
  5.         public static String[] woords = { "appel", "schep", "hallo", "peren", "vader", "ebola" };
  6.         public static Random wordChoise = new Random();
  7.         public static String rWoord = woords[wordChoise.nextInt(woords.length)];
  8.         public static int playBoard = 0;
  9.         public static String[] letters = { (wordChoise).split};
  10.                
  11.                
  12.         public static void main(String[] args) {
  13.                 System.out.println("Wat is de naam van speler 1?");
  14.                 Scanner input = new Scanner(System.in);
  15.                 String speler1 = input.nextLine();
  16.                 System.out.println("Wat is de naam van speler 2?");
  17.                 String speler2 = input.nextLine();
  18.  
  19.                 int beginspeler = (int) (Math.random() * 2);
  20.  
  21. Fout bij "Split".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement