Results 1 to 6 of 6
Thread: Stubborn code
- 01-23-2008, 09:32 AM #1
Stubborn code
Hello everyone.
Here's something silly to stare at.
Happy coding. :pJava Code:public class StubbornCode{ public static void main(String[] arg[B][COLOR="RoyalBlue"])[/COLOR][/B]{ while (true) { try{ double a = 1d, b = 0d; System.out.println("1 dived by 0 is " + a / b); } catch (Throwable e) { System.out.println("Damn, an error: " + e.getMessage()); System.out.println("Wait, let me try again"); } } } }Last edited by tim; 01-25-2008 at 04:35 PM.
Eyes dwelling into the past are blind to what lies in the future. Step carefully.
- 01-23-2008, 06:08 PM #2
************* WARNING CONTAINS SPOILERS ************
}{ and is alrightdont worry newbie, we got you covered.
- 01-24-2008, 06:47 PM #3
I'm missing something.... Tim was this a problem you're having?
Yep. but... Spoiler?? lol************* WARNING CONTAINS SPOILERS ************
}{ and is alrightVote 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)
- 01-25-2008, 04:31 PM #4
Oops
My bad. I didn't see that. :p Just fixed it.
Eyes dwelling into the past are blind to what lies in the future. Step carefully.
- 01-25-2008, 06:04 PM #5
Thought you were trying to pull a fast one there Tim... :-D
No worries, it happens. ;)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)
- 01-26-2008, 09:13 AM #6
Similar Threads
-
I need help fixing my code.. or non code?
By MrHuggykins in forum New To JavaReplies: 1Last Post: 03-19-2008, 10:12 PM -
Pls some one to help mi wit this code
By _nik_ in forum New To JavaReplies: 3Last Post: 02-10-2008, 02:02 AM -
code help
By chitwood in forum New To JavaReplies: 0Last Post: 02-10-2008, 12:08 AM -
tic tac toe code
By zoe in forum New To JavaReplies: 1Last Post: 07-23-2007, 04:36 PM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks