Pencarian Data
Kode Program : package bahasa_pemrograman_1; import java.util.*; public class Pencarian_data { public static void main(String[] args) { Scanner input = new Scanner (System.in); int[] harga = new int[10]; int pilih = 0; int beliharga[] = new int[5]; int jumlahbeli = 0; String[] menu = new String[10]; String belimakan[] = new String[5]; menu[0] = "Soto Ayam "; harga[0] = 15000; menu[1] = "Soto Daging "; harga[1] = 20000; menu[2] = "Mie Kuah "; harga[2] = 8000; menu[3] = "Mie Goreng "; harga[3] = 10000; menu[4] = "Nasi Goreng "; harga[4] = 12000; menu[5] = "Ayam Bakar "; harga[5] = 15000; menu[6] = "Ayam Panggang "; harga[6] = 16000; menu[7] = "Bebek Bakar "; harga[7] = 20000; menu[8] = "Bebek Goreng &quo