Fig01_03 - END public static void main String args...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Fig01_03 { /* START: Fig01_03.txt */ public static int bad( int n ) { /* 1*/ if( n == 0 ) /* 2*/ return 0; else /* 3*/ return bad( n / 3 + 1 ) + n - 1;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } /* END */ / public static void main( String [ ] args ) { System.out.println( "Bad is infinite recursion" ); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online