변수와 메서드란? variable (변수) something that is variable method (메서드, 방법) a procedure or process for attaining an object - a way, technique, or process of or for doing something ETC static 스태틱 (정적인) : standing or fixed in one place instance : 어떤 집합에 대해서, 그 집합의 개별적인 요소 class : 수업, 과목, 반, 학급 등 변수의 종류 클래스 변수 인스턴스 변수 지역 변수 변수의 선언된 위치가 중요! class VarMethod { void main(String[] args) { Variables.cv = 0; //Va..
스트링 배열이란? String a set of objects joined together in a row on a single rope or thread 밧줄이나 실 하나로 일렬로 연결된 한 세트의 물체 a usually short piece of text consisting of letters, numbers, or symbols that is used in computer processes such as searching through large amounts of information 대개 많은 양의 정보를 검색하는 것과 같은 컴퓨터 프로세스에서 사용되는 문자, 숫자 또는 기호로 구성된 짧은 텍스트 조각 Array a large group of things, especially one that ha..
연산자란? Operator (연산자) a symbol that does something to a number or quantity in a calculation. For example, in 7 + y, the symbol + is the operator. 계산에서 숫자나 양에 어떤 일을 하는 기호. 예를 들어, 7 + y에서 + 기호는 연산자 이다. ex) + - * / Operand (피연산자) a number or quantity that has something done to it in a calculation. For example, in 7 + y, 7 and y are the operands. 계산에 어떤 영향을 미치는 수 또는 수량. 예를 들어, 7 + y에서 7과 y는 피연산자 이다. ..
간단한 문법 + array / list(stack) / dictionary(map) # for문과 if문의 scope 범위는 :와 들여쓰기로 구분한다 for 0 in range(n): print('0부터 n까지 반복') for i in range(n): print('i부터 n까지 반복') for i in range(2, n): print('i부터 n까지 반복하는데 2부터 시작') # 입력 in_int = int(input()) in_str = str(input()) # 빠른 입력 ##맨 상단에 import sys in_rapid = int(sys.stdin.readline()) # array가 2차원 배열이라면 for x, y in array: print(x) # array[x][0] print(y) #..
형변환이란? Type Casting 높은 온도에서 가열하여 액체로 만들어 형(型)에 부어 굳히는 가공 방법 변수/상수 타입을 다른 타입으로 변환하는 것 형변환 방법 변수 및 리터럴 앞에 괄호 추가 (타입) 피연산자 public class Java_1_Casting { public static void main(String[] args) { //***변수 파트 //1. 숫자 담기 int val = 10; //2. 초기화 val = 0; //3. 임의의 숫자 입력 val = 65; //4. 문자로 형변환 char str = (char) val; //5. 출력 System.out.println("int val : " + val); System.out.println("char str : " + str); } }..