Results 1 to 3 of 3
Thread: Program Won't Compile
- 04-19-2008, 07:05 PM #1
Member
- Join Date
- Apr 2008
- Location
- USA
- Posts
- 12
- Rep Power
- 0
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."); } }
- 04-21-2008, 07:13 PM #2
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)
- 04-22-2008, 01:31 PM #3
Similar Threads
-
How to compile an applet to an exe
By elizabeth in forum Java AppletsReplies: 4Last Post: 02-18-2008, 03:57 AM -
Not able to compile
By bugger in forum New To JavaReplies: 2Last Post: 01-09-2008, 10:13 PM -
compile error
By dirtycash in forum New To JavaReplies: 6Last Post: 12-12-2007, 06:00 PM -
problem when I try to compile a program from command prompt
By osval in forum Advanced JavaReplies: 2Last Post: 08-06-2007, 09:16 PM -
Compile a program
By toby in forum New To JavaReplies: 2Last Post: 07-30-2007, 09:09 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks