본문 바로가기 메뉴 바로가기

삐삐사전

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

삐삐사전

검색하기 폼
  • 분류 전체보기 (45)
    • 개발일기 (40)
  • 방명록

It (1)
[JAVA] hex to int

import java.util.Scanner; import java.util.regex.Pattern; public class HexMain { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String number = scanner.nextLine(); String[] nn = number.split(""); boolean flag = Pattern.matches("^[a-fA-F0-9]*$", number); try { if(flag) { System.out.println(Integer.parseInt(number, 16)); } else { throw new HexException(); } } ca..

개발일기 2023. 1. 26. 22:28
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
링크
TAG
  • 맛집
  • 소품샵
  • 컴포넌트
  • 강의
  • 카페
  • 시작템플릿
  • 조지프나이
  • 프로그래밍
  • 알고리즘
  • 식물
  • postgre
  • Java
  • 식물키우기
  • vuejs
  • 파주
  • 오토스켈링
  • 로드밸런싱
  • 스타벅스
  • 코딩
  • 리더
  • 드라이브
  • VUE
  • PostgreSQL
  • 뷰
  • 인스턴스
  • 코딩테스트
  • 자바
  • AWS
  • 로드밸런서
  • spring
more
«   2026/07   »
일 월 화 수 목 금 토
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 31

Blog is powered by Tistory / Designed by Tistory

티스토리툴바