I am running a program test and Java kept on showing me this error message :
java: <identifier> expected
Can you please tell me what is wrong with my code?
package com.Benjamin;
public class Main {
public static void main(String[] args) {
String wordListOne = "24/7", "wine", "shoes", "cake", "car";
String wordListTwo = "cat", "Islam", "boat", "lake", "puppy";
String wordListThree = "ballon", "football", "joy", "pie", "war";
int oneLength = wordListOne.length;
int twoLength = wordListTwo.length;
int threeLength = wordListThree.length;
int rand1 = (int) (Math.random() * oneLength);
int rand2 = (int) (Math.random() * twoLength);
int rand3 = (int) (Math.random() * threeLength);
String phrase = wordListOne [rand1] + " " + wordListTwo[rand2] + " " + wordListThree[rand3] + "." ;
System.out.println(phrase);
}
}