Converter tests:
Change test data files extension to "java"
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
//file
|
||||
package demo;
|
||||
|
||||
class Test {
|
||||
static void subListRangeCheck(int fromIndex, int toIndex, int size) {
|
||||
if (fromIndex < 0)
|
||||
throw new IndexOutOfBoundsException("fromIndex = " + fromIndex);
|
||||
if (toIndex > size)
|
||||
throw new IndexOutOfBoundsException("toIndex = " + toIndex);
|
||||
if (fromIndex > toIndex)
|
||||
throw new IllegalArgumentException("fromIndex(" + fromIndex
|
||||
+ ") > toIndex(" + toIndex + ")");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user