decimalFormat
-
day24 - JAVA (자바 , SimpleDateFormat, DecimalFormat, parse, Math, Calendar)KIC/JAVA 2021. 7. 17. 21:59
[SimpleDateFormat 예제] package javaPro.java_string; import java.text.SimpleDateFormat; import java.util.*; public class DateEx2 { public static void main(String[] args) { Date now = new Date();//현재시간 객체를 리턴 System.out.println(now); SimpleDateFormat sf = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss E a"); String dispDate = sf.format(now) } } [DecimalFormat 예제] package javaPro.java_string; import java..