77d397fc53
modified: src/de/dhbwstuttgart/bytecode/signature/Signature.java modified: src/de/dhbwstuttgart/bytecode/signature/TypeToSignature.java modified: test/bytecode/javFiles/Merge.jav modified: test/bytecode/javFiles/OL.jav modified: test/bytecode/javFiles/Tph.jav modified: test/bytecode/javFiles/Tph3.jav new file: test/bytecode/javFiles/WC.jav
20 lines
299 B
Java
20 lines
299 B
Java
import java.util.List;
|
|
import java.lang.Integer;
|
|
import java.util.Collection;
|
|
|
|
class Merge {
|
|
|
|
merge(a, b) {
|
|
a.addAll(b);
|
|
return a;
|
|
}
|
|
|
|
|
|
|
|
sort(in){
|
|
var firstHalf = in.subList(1,2);
|
|
var secondHalf = in.subList(1,2);
|
|
return merge(sort(firstHalf), sort(secondHalf));
|
|
}
|
|
|
|
} |