| File 1 | File 2 | Level | Length | Clone |
| figure8.java:0 | base.java:0 | 1 | 275 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:0 | figure12.java:0 | 2, 1 | 300 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); bar( base ); } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:0 | figure14.java:0 | 5, 4, 3, 2, 1 | 263 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { int result = i; int base = 1; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:0 | figure15.java:0 | 5, 4, 3, 2, 1 | 264 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); re | /* This method will return power of input i */public int getPow ( int i, int pow) { return result; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); in |
|
| base.java:0 | figure10.java:0 | 2, 1 | 280 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { double base = 1.0; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:0 | figure13.java:0 | 3, 2, 1 | 276 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:210 | figure11.java:214 | 6, 5, 4, 3, 2, 1 | 84 | | );
}
System.out.println( “The result is ” + result );
return result;
}
| | );
}
System.out.println( “The result is ” + result );
return result;
}
|
|
| base.java:0 | figure11.java:0 | 2, 1 | 168 | | /* This method will return power of input i */
public int getPow ( int i, int pow) {
int base = 1;
int result = i;
while ( base < pow ) {
result *= | | /* This method will return power of input i */
public int getPow ( int i, int pow) {
int base = 1;
int result = i;
while ( base < pow ) {
result *= |
|
| base.java:0 | figure7.java:0 | 3, 2, 1 | 294 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; //Result while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:0 | figure9.java:0 | 5, 4, 3, 2, 1 | 287 | /* This method will return power of input i */public int getPow ( int i , int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int j , int pow) { int base = 1; int result = j; while ( base < pow ) { result *= j; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} |
|
| base.java:0 | figure6.java:0 | 1 | 261 | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} | /* This method will return power of input i */public int getPow ( int i, int pow) { int base = 1; int result = i; while ( base < pow ) { result *= i; base += 1; foo( result ); } System.out.println( “The result is ” + result ); return result;} |
|