posted 9 years ago
This is the code. It shows a <identifer> expected for each p1, p2 and p3 in the new.Player(); above.
I ran this code in my school on JDK 1.6 and it worked OK. Then I came home and ran it on JDK 1.8 and it was having issues. The same code. So this is the way I could get the least errors.
I tried naming the class to Player but then it did not identify the random in Math.random();.