본문 바로가기

분류 전체보기

(644)
8일차 - json 파일 생성과 읽기 & 자바 기초 json 이용하기 implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' build.gradle 파일의 dependencies 에 추가, 우측에 뜨는 아이콘을 눌러 다운로드 받는다. json 파일 생성 [{"id" : "yurrrrri", "name" : "yuri"}] 위 형식의 json 파일을 저장할 때... JSONObject data = new JSONObject(); data.put("id", "yurrrrri"); data.put("name", "yuri"); try(PrintWriter out = new PrintWriter(new FileWriter("data.json"))){ out...
도커가 뭐고 왜 쓰는 건가요? https://www.youtube.com/watch?v=tPjpcsgxgWc 서버를 돌리기 위한 환경(언어, 웹서버, 데이터베이스, 자동배포 툴 등)을 저장 서로 잘 맞물려 동작할 수 있도록 자동 설치 및 설정 서버를 옮기거나 서버 추가 시에 환경설정을 그대로 쓸수 있다.
정적 웹은 뭐고 동적 웹은 뭔가요? https://www.youtube.com/watch?v=C06xRvXIAUk 정적 웹 : 프로그래머가 작성한 코드들을 그대로 실행 동적 웹 : 서버에서 매번 가공하여 실행, 사용자의 인터랙션에 따라 바뀜
[10분 테코톡] 르윈의 TCP UDP https://www.youtube.com/watch?v=ikDVGYp5dhg Transport Layer : End point간 신뢰성 있는 데이터 전송을 담당하는 계층 신뢰성 : 데이터를 순차적, 안정적으로 전달 전송 : 포트 번호에 해당하는 프로세스에 데이터를 전달 TCP(Transmission Control Protocol) : 신뢰성 있는 데이터 통신을 가능하게 해주는 프로토콜 Connection 연결 (3-way handshake) - 양방향 통신 단점 : 시간 손실, 패킷을 조금만 손실해도 재전송 UDP(User Datagram Protocol) : TCP보다 신뢰성은 떨어지지만 전송 속도가 일반적으로 빠른 프로토콜 Connectionless 비교적 데이터의 신뢰성이 중요하지 않을 때 사용(..
[코드업/자바] 3004 - 데이터 재정렬 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; List list = new ArrayList(); for(int i=0; i
[코드업/자바] 1805 - 입체기동장치 생산공장 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List devices = new ArrayList(); int n = sc.nextInt(); for(int i=0; i
[백준/자바] 10869 - 사칙연산 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); System.out.println(A+B); System.out.println(A-B); System.out.println(A*B); System.out.println(A/B); System.out.println(A%B); sc.close(); } }
[백준/자바] 1008 - A/B import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double A = sc.nextDouble(); double B = sc.nextDouble(); System.out.println(A/B); sc.close(); } }