#210707#github#소스파일 1. 순서 1) 깃허브에서 소스파일 압축한 것 다운로드(download.zip) 2) 압축 해제 > 이클립스, 프로젝트 파일로 복붙. 3) import (파일명).(파일명).(원하는소스이름); 을 제일 상단에 선언. 4) 이제 class - main 함수 내에서 (원하는 소스이름) 불러서 사용가능. 2. 활용(ex. IoT 프로그램) import org.opentutorials.iot.Elevator; import org.opentutorials.iot.Lighting; public class OkJavaGoinHome { public static void main(String[] args) { String id = "JAVA APT 507"; // Elevator c..
#210706#숫자와문자열#데이터타입 1. 데이터 타입을 구분하는 이유? 간략히 설명하면, 타입별 어울리는 연산방법이 있기 때문이다. 2. 본 수업의 목적 1) 이 시스템에는 어떤 종류의 데이터 타입이 존재하는가? 2) 각각의 데이터 타입별로 어떤 연산방법이 존재하는가? 3. 오늘 배운 내용 public class Datatype { public static void main(String[] args) { System.out.println(6); //Number System.out.println("six"); //String System.out.println("6"); //String 6 System.out.println("1111".length()); // 4, 문자열 길이 알려주는. System.ou..