java (2) 썸네일형 리스트형 자바 AWT 10진수 16진수 변환기 import java.awt.*; /** * @author ehjeong * */ public class Hex2Dec extends Frame { private static final long serialVersionUID = 1L; private TextField textField = null; private TextField textField1 = null; private Button button = null; private CheckboxGroup cg = new CheckboxGroup(); private Checkbox checkbox = new Checkbox("16 > 10", true, cg); private Checkbox checkbox1 = new Checkbox("10 > 16",.. 자바 주민등록번호 체크 /* 8 0 0 1 0 1 - 1 2 3 4 5 6 7 검사 *2 *3 *4 *5 *6 *7 *8 *9 *2 *3 *4 *5 Checkbit A = Sum % 11 B = 11 - A C = B % 10 C == Checkbit */ public class Idnumber{ public static void main(String[] args){ String jumin = "830316-1234567"; String str = jumin.substring(0,6) + jumin.substring(7,jumin.length()); // -를 제외한 부분만 추출 char[] ch = new char[13]; int sum=0; //계산 부분 for(int i=0; i 이전 1 다음