어제오늘에 거친 day4다. 확실히 3일차에서 4일차 넘기기 어렵군
이러다가 작심삼일 무한반복인건가. 그렇게라도 이어나가자.
//괄호로 시작해서 괄호로 끝나는것: method
//이클립스가 대박인점
: Light 치고 ctrl+space바 치면 자동으로 opentutorials.iot추천해줌
프로그래밍을통해서 이렇게 많은일을 자동화 시킬수있구나 하는것!
import org.opentutorials.iot.Elevator;
import org.opentutorials.iot.Lighting;
import org.opentutorials.iot.Security;
public class OKjavaGoInHome {
public static void main(String[] args) {
//Elevator call
Elevator myElevator =new Elevator("JAVA APT 1803");
myElevator.callForUp(1);
//Security off
Security mySecurity =new Security("JAVA APT 1803");
mySecurity.off();
//Light on
Lighting hallLamp=new Lighting("JAVA APT 1803/Hall Lamp");
hallLamp.on();
Light floorLamp=new Lighting ("JAVA APT 1803/floorLamp");
floorLamp.on();
}
}
bug
debug
debugging
debugger
의도하지 않은 버그를 잡는 일:디버깅
단순히 기계 끼리 알림을 주고받는다