목록2024/01/04 (2)
JS Coding
package lecture.no2; import java.util.Scanner; public class MovieManagementSystem { String selectName = ""; // 예매시 입력한 이름 int selectMovie = 0; // 예매시 선택한 영화 번호 String selectMovieName = ""; // 얘매시 선택한 영화명 String selectSeatNumber = ""; // 예매시 선택한 좌석 번호 boolean flag = false; // 이용 상태 (현재 이용중) int money = 50000; // 현재 잔액 String[] movie = new String[] { "리미트", "범죄도시", "서울대작전", "토르:러브 앤 썬더", "헤어질 결심",..
package homework; /* 10마리의 말들이 경주하는 경마 프로그램 작성하기... 말은 Horse라는 이름의 쓰레드 클래스로 작성하는데 이 클래스는 말이름(String), 현재위치(int), 등수(int)를 멤버변수로 갖는다. 그리고, 이 클래스에는 등수를 오름차순으로 처리 할 수 있는 내부 정렬 기준이 있다. (Comparable 인터페이스 구현) 경기 구간은 1 ~50 구간으로 되어 있다. 경기가 끝나면 등수 순으로 출력한다. 그리고 경기 중 중간 중간에 각 말들의 현재 위치를 아래와 같이 나타내시오... 아래) 01번 말 : --------->---------------------------------------- 02번 말 : ----------------->---------------..