분류 전체보기 (58) 썸네일형 리스트형 Java Software Solution Ch7_PP8 ; Interface, Class, toString() 책 Java Software Solution 9th Edition 의 문제 Chapter7 PP8 Write a Java interface called Lockable that includes the following methods: setKey, lock, unlock, and locked. The setKey, lock, and unlock methods take an integer parameter that represents the key. The setKey method establishes the key. The lock and unlock methods lock and unlock the object, but only if the key passed in is correct. The lock.. No.11399_ATM package greedy; import java.util.*; public class no11399 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scanner = new Scanner(System.in); int person = scanner.nextInt(); // N명의 사람 int[] minute = new int[person]; // i번 사람이 돈을 인출하는 데 걸리는 시간 for (int i = 0; i 이전 1 ··· 5 6 7 8 다음