Thread: Stubborn code
View Single Post
  #1 (permalink)  
Old 01-23-2008, 11:32 AM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Stubborn code
Hello everyone.

Here's something silly to stare at.

Code:
public class StubbornCode{ public static void main(String[] arg){ 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"); } } } }
Happy coding.
__________________
If your ship has not come in yet then build a lighthouse.

Last edited by tim : 01-25-2008 at 06:35 PM.
Reply With Quote
Sponsored Links