Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- import java.util.Scanner;
- public class LingoTest {
- public static String[] woords = { "appel", "schep", "hallo", "peren", "vader", "ebola" };
- public static Random wordChoise = new Random();
- public static String rWoord = woords[wordChoise.nextInt(woords.length)];
- public static int playBoard = 0;
- public static String[] letters = { (wordChoise).split};
- public static void main(String[] args) {
- System.out.println("Wat is de naam van speler 1?");
- Scanner input = new Scanner(System.in);
- String speler1 = input.nextLine();
- System.out.println("Wat is de naam van speler 2?");
- String speler2 = input.nextLine();
- int beginspeler = (int) (Math.random() * 2);
- Fout bij "Split".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement