강의소개
시간의 순서에 따라서 일어나야 하는 일을 컴퓨터에게 알려주는 일이 프로그래밍입니다. 프로그래밍을 통해서 만든 결과물이 프로그램입니다. 이 수업에서는 프로그래밍의 의미를 파악해보고, 이미 우리가 혁명적인 능력을 갖게 되었다는 것을 설득시켜드릴 것입니다.
강의1
소스코드
public class Program {
public static void main(String[] args) {
System.out.println(1);
System.out.println(2);
System.out.println(3);
}
}
강의2
소스코드
강의3
소스코드
import org.opentutorials.iot.Elevator;
import org.opentutorials.iot.Lighting;
import org.opentutorials.iot.Security;
public class OkJavaGoInHome {
public static void main(String[] args) {
String id = "JAVA APT 507";
// Elevator call
Elevator myElevator = new Elevator(id);
myElevator.callForUp(1);
// Security off
Security mySecurity = new Security(id);
mySecurity.off();
// Light on
Lighting hallLamp = new Lighting(id+" / Hall Lamp");
hallLamp.on();
Lighting floorLamp = new Lighting(id+" / floorLamp");
floorLamp.on();
}
}

