Searching

Run Settings
LanguageJava
Language Version
Run Command
class Main { public static void main(String[] args) { String[] nama = {"Mustofa", "Imron", "Marzuki", "Romi", "Ridho"}; String[] ukm = {"Olahraga", "Gunung", "Olahraga", "Fotografi", "Penalaran"}; searchByName(nama, ukm, "Imron"); } public static void searchByUKM(String[] dataUKM, String[] dataNama, String inputUKM) public static void searchByName(String[] data, String[] data2, String inputNama){ for(int i=0; i<= data.length; i++){ if(data[i] == inputNama){ System.out.println("Data Ditemukan Pada Indeks Ke-"+ i); System.out.println("Nama : "+ data[i]); System.out.println("UKM : "+ data2[i]); break; } } } }
Editor Settings
Theme
Key bindings
Full width
Lines