java - Error cannot be resolved to a variable -
error:
exception in thread "main" java.lang.error: unresolved compilation problem: guess cannot resolved variable @ hw2.demo.getuserguess(demo.java:80) @ hw2.demo.play(demo.java:23) @ hw2.demo.main(demo.java:15)
code
private static char[] getuserguess() { scanner input= new scanner(system.in); char [] user = new char [array_size]; (int =0; i<array_size; i++){ system.out.println("plz enter color guess b g r y o p"); char c=input.next().charat(i); user[i]=c; //...
i beginner @ java
Comments
Post a Comment