Michael Sander569 Points
i can't pass the random test.java
i didn't know where is the mistake. i just write the same way like in the video.
Random randomGenerator = New Random (); Int rendomNumber = randomGenerator.nextInt (); String Point = Points[randomNumber];
Random randomGenerator = New random (); Int randomNumber = randomGenerator.nextInt (); String Point = Points[randomNumber];
Jennifer NordellTreehouse Teacher
Hi there! I'm not sure which step you're working on, but Step 1 of the challenge requires exactly one line of code. The first line of your code will not pass Step 1. When we're creating an instance of a class we use the
new keyword, but you've typed
New. Also, the class we're making an instance of is
Random(), but you've typed
random(). Remember, just about everything in programming is case-sensitive. You may not arbitrarily pick the capitalization and expect it to work.
Hope this helps!