Results 1 to 3 of 3
  1. #1
    JavaLovenJoe is offline Member
    Join Date
    Apr 2008
    Location
    USA
    Posts
    12
    Rep Power
    0

    Angry Program Won't Compile

    This is mostly straits out of tutorial:
    Java Code:
    import com.blogspot.joelnkode.tutorial.java.*;
    
    public class CoolCode extends NewApplication {
    	public void startHere() {
    		String name = new InputUtils("What's your name?");
    		new OutputUtils(new String[] {"Hello", name});
    		String[] luckyNumbers =
    			InputUtils.times(5, "What are your 5 lucky numbers?");
    		for (String luckyNumber : luckyNumbers) {
    			new EqualsUtils(this).is(luckyNumber).
    				isEquals(0, "message0").
    				isEquals(5, "message5")).
    				isEquals(100, "message100").
    				otherwise("otherwise");
    		}
    		ApplicationUtils.exit();
    	}
    	public void message0() {
    		new OutputUtils("L0L! You are a 0!");
    	}
    	public void message5() {
    		new OutputUtils("5 is the best number!");
    		new OutputUtils("Live long and prosper!");
    	}
    	public void message100() {
    		new OutputUtils("You are old.");
    	}
    	public void otherwise() {
    		new OutputUtils("That's not a lucky number.");
    	}
    }

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    9

    Default

    Once again, consult the API for your library or if a support group exists use that.
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  3. #3
    Join Date
    Apr 2008
    Location
    Fort Wayne, Indiana
    Posts
    62
    Rep Power
    0

    Default

    I agree with Captain Morgan...what is com.blogspot.joelnkode.tutorial.java.* anyways? Eclipse doesn't recognize it.

Similar Threads

  1. How to compile an applet to an exe
    By elizabeth in forum Java Applets
    Replies: 4
    Last Post: 02-18-2008, 04:57 AM
  2. Not able to compile
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 11:13 PM
  3. compile error
    By dirtycash in forum New To Java
    Replies: 6
    Last Post: 12-12-2007, 07:00 PM
  4. Replies: 2
    Last Post: 08-06-2007, 10:16 PM
  5. Compile a program
    By toby in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 10:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •