[ JAVA ] 배열 활용하여 카페프로그램 구현하기
카페 프로그램 구현해보기! package day0112; import java.util.Scanner; public class Test2 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int count=0; // 개수를 저장할 count 생성 String orderList[]= new String[5]; // 메뉴 주문은 5개까지 가능! int total=0; //총 금액을 저장할 변수 생성 while(true) { System.out.println("=====카페====="); System.out.println("1. 주문하기 "); System.out.println("2. 취소하기 "); System.out...
2022.01.07