Go to 코딩천재/Java(2)
-
[json-simple] json 파일 읽어오기, 파싱
*utf-8 인코딩된 json파일 기준 STEP 1 . json-simple.jar를 pom.xml에 추가하기 (1.1.1버전) *maven 기준 - https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple/1.1.1 Maven Repository: com.googlecode.json-simple » json-simple » 1.1.1 A simple Java toolkit for JSON com.googlecode.json-simple json-simple 1.1.1 // https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple compile group:..
2019.09.22 -
1. Java 기초 문법
1 시작 (클래스 + 메인함수) public class Main{ public static void main(String[] arg) { ...; } } 2 문자열 출력 System.out.print(""); O System.out.print(''); X System.out.print("'a'"); O System.out.print("\"a\""); O System.out.print(""a""); X System.out.print("\\"); O System.out.print("\"); X 3 입력 1. java.util.Scanner 이용 import java.util.Scanner; Scanner scan = new Scanner(System.in); //입력 공간 생성 String str = sca..
2019.08.01