uWrite the ServiceDemo2 class
•
Get the input values from the user.
•Get a String for userName;
u
Get an integer for locationID.
•Get an positive number.
•If it is zero, you may assign a default value. (for example, 99)
•Use a loop until getting a non-negative number.
u
Get an integer for service.
•Get an integer number between 1 and 10.
•Use a loop until getting the valid number.
•
Show the list of services before you get the integer from the user.
(10 services in Lab 2-2)
•Assign the service name into a String type variable.
•Generate an objects with the proper values.
uUse the constructors accordingly.
•Make two more objects (totally three objects.)
이런 내용이거든? 이 클래스 말고 또 A라는 클래스에는 인스턴스
변수로 로케이션아이디가 있어. 근데 서비스데모 클래스에서
조건문으로 돌리려고 하거든? 근데 static 변수가 아니니까 객체 하
나 만들때마다 조건문 하나를 추가해야되자나 그럼 너무 비효율 적
인데 과제에서 그렇게 하라는게 맞냐? 영어를 못해서 ㅅㅂ
과제충 아웃
복붙충 아웃
내가 해석한게 맞냐고 물어보는거잖아 시1벌럼아 누가 답알려달랬냐?