문과생의 코딩노트
close
프로필 배경
프로필 로고

문과생의 코딩노트

    • 분류 전체보기 (98)
      • DB (14)
        • Oracle (6)
        • MSSQL (7)
      • 코딩공부 (24)
        • JAVA (16)
        • HTML&CSS (2)
        • C# (1)
        • JS (1)
        • [국비지원] 토이프로젝트 (3)
      • Computer (14)
      • IT issue (7)
      • 기타 (19)
      • 블로그 운영 (16)
      • 비공개 (0)
      • Gemini (3)
  • mode_edit_outline글작성
  • settings환경설정
  • 홈
  • 코딩공부
  • 블로그운영
  • 방명록
JAVA #10 : 남은 퇴근 시간 계산기, 시간 계산하기, SimpleDateFormat, currentTimeMillis

JAVA #10 : 남은 퇴근 시간 계산기, 시간 계산하기, SimpleDateFormat, currentTimeMillis

퇴근 시간이 18시 00분인 회사원의 현재 시각에서 남은 시간을 출력하는 프로그램을 코딩하세요 SimpleDateFormat과 currentTimeMillis를 사용한 문제풀이입니다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import java.text.SimpleDateFormat; import java.util.Date; public class blog{ public static void main(String[] args){ SimpleDateFormat a= new SimpleDateFormat("HH시간 mm분 ss초"); SimpleDateFormat b= new SimpleDateFormat("HH:mm:ss"); long time = System...

  • format_list_bulleted 코딩공부/JAVA
  • · 2022. 5. 30.
  • textsms
JAVA #3 : Format 명령어를 이용한 숫자의 자릿수 출력하기

JAVA #3 : Format 명령어를 이용한 숫자의 자릿수 출력하기

#3 :임의의 숫자를 입력 받아서 자릿수를 출력하시오. 숫자를 입력 받아서 자릿수를 자동으로 구분하게 만들어 주는 명령어는 없을까? Fomat 명령어 중 DecimalFormat 명령어를 사용하면 자릿수를 구분해서 숫자를 출력할 수 있다 아래와 같이 임의의 숫자를 입력 받고 DecimalFormat을 사용해 자릿수 포멧을 설정 할 수있다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import java.text.DecimalFormat; public class ll { public static void main(String[] args) { double a= 123456789.123; DecimalFormat df =new DecimalFormat(); df = new DecimalForm..

  • format_list_bulleted 코딩공부/JAVA
  • · 2022. 5. 17.
  • textsms
  • 1
전체 카테고리
  • 분류 전체보기 (98)
    • DB (14)
      • Oracle (6)
      • MSSQL (7)
    • 코딩공부 (24)
      • JAVA (16)
      • HTML&CSS (2)
      • C# (1)
      • JS (1)
      • [국비지원] 토이프로젝트 (3)
    • Computer (14)
    • IT issue (7)
    • 기타 (19)
    • 블로그 운영 (16)
    • 비공개 (0)
    • Gemini (3)
250x250
인기 글
최근 글
태그
  • #AMD
  • #티스토리
  • #자바
  • #자바공부
  • #java
  • #Oracle
  • #라이젠
  • #코딩
  • #코딩공부
  • #CPU
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바