forked from JavaTX/JavaCompilerCore
94b93c39df
modified: src/de/dhbwstuttgart/bytecode/BytecodeGenMethod.java new file: test/bytecode/FieldTest.java modified: test/bytecode/MatrixOpTest.java new file: test/bytecode/javFiles/Field.jav modified: test/bytecode/javFiles/Sorting.jav Boxing-Problem bei methodCall geloest und Tests funktionieren
24 lines
338 B
Java
24 lines
338 B
Java
import java.util.List;
|
|
import java.util.ArrayList;
|
|
import java.lang.String;
|
|
|
|
public class Sorting{
|
|
merge(a, b){
|
|
a.addAll(b);
|
|
return a;
|
|
}
|
|
/*
|
|
sort(in){
|
|
var firstHalf = in;
|
|
var secondHalf = in;
|
|
return merge(sort(firstHalf), sort(secondHalf));
|
|
}
|
|
*/
|
|
/*
|
|
|
|
void sort(ArrayList<String> a){
|
|
a = merge(a,a);
|
|
}
|
|
*/
|
|
}
|