일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 티스토리 초대장/ 티스토리초대
- 티스토리초대
- 프레시업 #풀무원 #하루한병 #건강만들기 #풀무원 녹즙
- code 설치
- Emmet
- visual studio code
- 네이버 클라우드 플랫폼
- visual studio code cli
- code 세팅
- 니돈내먹
- GitHub Mirroring
- currentTimeMillis
- webstorm
- react native #gradle
- code .
- settings sync
- 음료같은녹즙
- 티스토리 초대장
- GitHub 미러링
- eslint-import-resolver-typescript
- 실행시간 측정
- Path Alias
- GitLab미러링
- GitLab Mirroring
- gitlab 연동
- 유니옥션
- 프리티어
- '티스토리 초대장/ 티스토리초대'
- React Native
- 초대장
- Today
- Total
목록홍익대 Java (54)
방치하기
class NumBer { private int num1; private int num2; public void swap() { int swap=num1; num1=num2; num2=swap; } public void setNum1 (int new_num) { num1=new_num; } public int getNum1() { return num1; } public void setNum2 (int new_num) { num2=new_num; } public int getNum2() { return num2; } } //스윕 겟 셋 메소드를 가진 클래스 //본체 클래스 public class NumBerTest { public static void main (String [] args) { NumBer..
public class AnimalTest03 { public static void main (String [] args) { Animal a ; a= new Animal(); a.name="원숭이"; a.setAge(26); System.out.println(a.name); System.out.println(","+a.getAge()); } } class Animal { String name; private int age; public void setAge (int new_age) { age=new_age;// 여기서 바로 바뀌기 때문에 궂이 리턴 안해도 된다. } public int getAge() { return age; } }
import java.io.*;//read 를 위해 붙였습니다. class main{ public static void main(String[] args) throws Exception { int a; String num1 = args[0]; String num2 = args[1]; System.out.println("num1 = " + num1); System.out.println("num2 = " + num2); while(true) { System.out.print("사칙 연산자중 하나를 입력하시오 : (Ex: +)\n종료는 E를 입력해주세요.\n"); a=System.in.read(); System.in.skip(5); // 이거 엔터키 버려주는 if((char)a=='+') { int sum =..
class w2{ public static void main(String[] args) { String str = args[0]; char ch; ch=str.charAt(6); int a=(int)ch; if (48
class Ph { /*콜바이 벨류 public static void swap(int a, int b) { int memory=a; a=b; b=memory; System.out.printf("%d %d",a,b); } public static void main(String[] args) { int num=Integer.parseInt(args[0]); int num2=Integer.parseInt(args[1]); swap(num,num2); */ //콜바이 레퍼런스 public static void swArr(int [] ar) { int w=ar[0]; ar[0]=ar[1]; ar[1]=w; System.out.printf("%d %d\n",ar[0],ar[1]); } public static vo..
import java.util.*; class Ph { public static void main(String[] args) throws Exception { int [] numArr={1,5,3,2,7}; Arrays.sort(numArr); for (int i : numArr){ System.out.print(i+" "); Thread.sleep(500); System.out.print("\r"); Thread.sleep(500); System.out.print("잠시만 기달려"); Thread.sleep(500); System.out.print("\r"); } } }
class arr { public static void main(String[] args) { int [][] aS=new int [5][3] ; int [] aSc=new int [15]; for (int i=0;i
class StringTest { public static void main(String[] args) { String str = "abcd"; String str2 = str.replace( 'a', 'z') ; System.out.println(str2); System.out.println(str2.indexOf("b")); System.out.println(str2.toUpperCase()); char [] ch1= str.toCharArray(); for (int i=0;i
class Jh{ public static void main(String[] args)throws Exception { for (int a=1; a