Results 1 to 2 of 2
- 12-02-2011, 05:19 PM #1
Exception in thread "main" java.lang.StackOverflowError
As the thread says i have a problem in netbeans.It says "Exception in thread "main" java.lang.StackOverflowError".
it is printed after a recursion method run and for "x" value exp. lower than -100 and higher than +200.Anyone have any idea?
Here is the method.
Java Code:static void pyrmin(int i,int j,int x,int z) { if (i>0) { System.out.print("a"); i--; } else { System.out.print("b"); j++; } if (j>z) { i=Math.abs(x)-j; j=1; z++; System.out.println( ); } if (z<=Math.abs(x)) pyrmin(i,j,x,z); }Last edited by chris.bos; 12-02-2011 at 05:25 PM.
- 12-02-2011, 06:55 PM #2
Similar Threads
-
Exception in thread "main" java.lang.NumberFormatException:input string: "060320
By renu in forum New To JavaReplies: 14Last Post: 04-08-2011, 06:01 PM -
Exception in thread "main" java.lang.StackOverflowError
By felito in forum New To JavaReplies: 4Last Post: 02-01-2011, 08:52 AM -
Question about error "Exception in thread "main" java.lang.NoSuchMethodError: main
By ferdzz in forum New To JavaReplies: 5Last Post: 06-22-2010, 03:51 PM -
Runtime error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
By shantimudigonda in forum New To JavaReplies: 1Last Post: 11-20-2009, 07:58 PM -
Exception in thread "main" java.lang.NullPointerException at LinkedList.main(Link
By kavitha_0821 in forum New To JavaReplies: 6Last Post: 07-16-2009, 03:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks