티스의 이야기

자바라이브러리(java library) 공부하기 toUpperCase 본문

프로그래밍

자바라이브러리(java library) 공부하기 toUpperCase

밍딩이 2015. 7. 29. 16:14

import java.util.Scanner;


public class TestMain {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println("id를 입력하세요");

String id = sc.next();

//대문자로 AbcDyuiwe

System.out.println(id.toUpperCase());

}

}



toUpperCase 는 대문자로 바꿔주는 결과물



'프로그래밍' 카테고리의 다른 글

Java Language -> 문법  (0) 2015.07.29
String buffer 자바라이브러리  (0) 2015.07.29
모든클래스의 조상 object 클래스  (0) 2015.07.28
oracle 오라클 문서 확인하기  (0) 2015.07.28
자바 인터페이스(interface)란?  (0) 2015.07.28
Comments