일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 저장소
- 자바스크립트
- GIT
- join()
- 파이썬
- array
- SSL
- Swing
- JavaScript
- 프로그래머스스쿨
- 배열
- JS
- event
- AssertJ
- class
- SpringBoot
- c#
- docker
- Python
- synchronized
- Docker Desktop
- 객체
- StringBuilder
- Java
- 스프링부트
- 클래스
- Dict
- thread
- 메소드
- 자바
- Today
- Total
목록프로그래밍 (89)
정리노트

Boxing = 값형(기본형) 데이터를 참조형으로 변환Unboxing = 반대 개념이지만, Boxing 된 것을 기존의 데이터 형으로만 변환할 수 있다. boxing 진행 -> 묵시적unboxing 진행 -> 명시적using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Boxing_Unboxing{ internal class Boxing_Unboxing { static void Main(string[] args) { int foo = 526; object bar = foo..

스트링 객체는 가지고 있는 스트링 내용을 변경할 수 없기 때문에스트링에 대한 연산의 결과는 항상 새로운 스트링 객체를 만든다.스트링 연산 결과로 항상 새로운 스트링 객체를 만들기 때문에 연산이 많은 경우에는 부하가 걸린다.이를 해결하기 위하여 StringBuilder 클래스를 사용한다. StringBuilder는 객체에 저장된 내용을 임의로 변경할 수 있다.using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace String_{ internal class String_ { static void Main(string[] arg..

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Array{ internal class Array { static void Main(string[] args) { int[] ia = new int[3]; // 정수형 3칸 배열 생성 int[] ib = { 1, 2, 3 }; // 정수형 3칸 배열 생성, 값 초기화 int i; for (i = 0; i // 이중배열 using System;using System.Coll..

서로 관련있는 상수들의 모음을 심볼릭한 명칭의 집합으로 정의한 것(가독성 증가 장점)기술된 명칭들을 기호 상수라 부르며 명시된 순서에 따라0 부터 ~ 순서값을 가지고 정수형으로 교환하여 사용할 수 있다. ++, -- 연산자로 다음 또는 이전 원소로 접근이 가능하다. using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace EnumType{ enum Color { Red, Green, Blue }; internal class EnumType { static void Main(string[] args) { ..

사용자 1package chatUDP;import java.io.IOException;import java.net.*;import javax.swing.*;import java.awt.*;import java.awt.event.*;public class UDPchat1 { protected JTextField textField; protected JTextArea textArea; DatagramSocket socket; // UDP프로토콜 생성 클래스 DatagramPacket packet; // 주고 받을 데이터를 담는 클래스 InetAddress address = null; final int myPort = 5000; // 수신용 포트번호 final int otherPort = 6000; // ..

1. 서버 만들기package serverSocket;import java.io.*;import java.net.*;import java.util.Scanner;public class ServerSocketTest { public static void main(String[] args) { ServerSocket serverSocket = null; Socket clientSocket = null; BufferedReader in = null; PrintWriter out = null; Scanner sc = new Scanner(System.in); try { serverSocket = new ServerSocket(5000); // 연결포트생성, 포트 번호 : 5000 / Serve..

package shapeTest;import java.io.IOException;import java.net.InetAddress;import java.net.UnknownHostException;public class ShapeTest { public static void main(String[] args) throws IOException { String hostName = "www.naver.com"; try { InetAddress address = InetAddress.getByName(hostName); InetAddress myAddress = InetAddress.getLocalHost(); System.out.println("IP주소: " + address.getHostAd..