KakaoTalk_20190606_001802318.png
  • 246x0w
Welcome
Curriculum
Install&Go
Board
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
  • 카테고리
  • 전체 게시물
  • 내 게시물
ellakim
2019년 6월 25일

method overloading

게시판: 소스 코드 제출

////import java.util.*;

////import java.util.Scanner;

////

////public class Main {

////public static void main(String[] args) {

//// Scanner t = new Scanner (System.in);

//// int a[] = new int[5];

//// int kor[] = new int[5];

//// int math[] = new int[5];

//// int eng[] = new int[5];

////

//// for(int i =0; i<5; i++) {

//// a[i] = t.nextInt();

//// kor[i] = t.nextInt();

//// math[i] = t.nextInt();

//// eng[i] = t.nextInt();

////

//// System.out.print("kor");

//// System.out.print("math");

//// System.out.print("eng");

//// }

////}

////}

//

//

//

//import java.util.*;

//

//class student {

// int a;

// int sub[];

// double k;

//

// // constructor

// student() {

// sub = new int[10];

// }

// // method overloading

// student(int k) {

// sub = new int[k];

// }

//

// void input() {

// a = 5505;

// }

// // method overloading

// int CalcuPlus(int a, int b) {

// return a+b;

// }

// double CalcuPlus(double a, int b) {

// return a+b;

// }

// double CalcuPlus(int a, double b) {

// return a+b;

// }

// int CalcuPlus(int a, int b, int c) {

// return a+ +b +c;

// }

// // Apply Ideas Let's Solve 2 Q;

// // method overloaing

//}

//

//public class Main {

// public static void main(String[] args) {

// Scanner t = new Scanner(System.in);

//

// ///////////////////////

// student gk = new student(/* here is conttructor*/);

// student sn = new student();

// ///////////////////////

// // 100, 500, 1000

// System.out.println(gk.sub.length);

//

// gk.input(); // played input method

// System.out.println(gk.a);

// }

//}

//

///////////////////////////////////////

//// int -2^31 ~ +2^31-1 // -2147 ~ +21

//// 100억 데이터

//// long < -2~^63 ~ +2^63-1 // 100

//// using Arrays << // Add method

////



import java.util.*;


public class Main {

public static void main(String[] args) {

Scanner t= new Scanner(System.in);

//String str = t.next(); // don't add space bar

// word

//String str = t.nextLine(); // add space bar

// string

String str = t.next();

System.out.println(str.length());

// hint : input String variable, change int array and final > calculated.

// of course, using Class <<

}

}






댓글 0개
0
댓글
댓글 0개
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호