according to the following:
triangles.java:17: error: cannot find symbol
shape = keyboard.nextChar();
^
symbol: method nextChar()
location: variable keyboard of type Scanner
1 error
why is it not finding symbol? i have keyboard initialized as the scanner. how would i fix this?
this is how i initialized it:
char shape;
shape = scanner.nextChar();
i have changed char to String, but that did nothing. i have imported a scanner, so thats not an issue.