Latihan Method
package Method; import java.util.Scanner; public class Method { //variabel global static int harga[] = new int[10]; static int hitungharga(int hargasatuan, int jumlah) //header { //body int harga = hargasatuan*jumlah; return harga; } static String[] sort(String[] menu){ for (int i = 0; i < menu.length; i++) { for (int j = 0; j < menu.length-1; j++) { if (menu[j].compareToIgnoreCase(menu[j+1])>0){ String t = menu[j]; menu[j] = menu[j+1]; menu[j+1] = t; ...