This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Dua { | |
public static void main(String[] args) { | |
int n = 10; | |
solutionA(n); | |
solutionB(n); | |
solutionC(n); | |
solutionD(n); | |
} | |
// NOMOR 2a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
public class Anagram { | |
public static void main(String[] args) { | |
String[] arr = {"cook", "save", "taste", "aves", "vase", "state", "map"}; | |
ArrayList<ArrayList<String>> result = solution(arr); | |
System.out.println(result);; | |
} |