User Profile
Collapse
-
I'm sorry, but I don't understand what you mean. I'm new to Java. I input the code as listed, and I'm getting "WhoWins cannot be resolved to a type." What does this mean? And how can I fix it?... -
enum issue
Hi. The program below is from Beginning Programming with Java for Dummies, from the section on declaring enum values. In Eclipse, the declaration WhoWins is coming up with an error (cannot assign a value). I've tried typing "enum" and "public enum" in front of it, but am getting the same error. I've changed the compliance to Java 6, which is what I'm using, but the error persists. Any ideas?
import java.util.Scann er;... -
findInLine
Can anyone tell me why this code doesn't compile? It has something to do with the line that reads: reply = myScanner.findI nLine(".").char At(0);
Code:import java.util.Scanner; class TicketPriceWithDiscount { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); int age; double price = 0.00; char reply; System.out.print("How
No activity results to display
Show More
Leave a comment: