User Profile

Collapse

Profile Sidebar

Collapse
noisepoet
noisepoet
Last Activity: Feb 22 '07, 08:13 PM
Joined: Feb 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • noisepoet
    replied to enum issue
    in Java
    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?...
    See more | Go to post

    Leave a comment:


  • noisepoet
    started a topic enum issue
    in Java

    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;...
    See more | Go to post

  • noisepoet
    started a topic findInLine
    in Java

    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
    ...
    See more | Go to post
    Last edited by horace1; Feb 15 '07, 08:23 PM. Reason: added code tags
No activity results to display
Show More
Working...