package study;
public class Index_Study {
public static void main(String[] args) {
String jumin_no = "901212-1234567";
char gender = jumin_no.charAt(7);
System.out.println(gender);
gender = jumin_no.charAt(0);
System.out.println(gender);
}
}
'IT > 자바함수' 카테고리의 다른 글
insert() 원하는 위치에 글자 삽입 함수 (0) | 2018.04.28 |
---|---|
String.format() 객체생성 없이 쓸수 있는 Static 메소드 (0) | 2018.04.28 |
substring() 문자열을 원하는 위치에서 잘라야 하는 경우 (0) | 2018.04.28 |
Integer.parseInt() 문자를 숫자로 변형할 때 (0) | 2018.04.28 |
indexOf (0) | 2018.04.28 |