fork(208) download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.text.SimpleDateFormat;
  4. import java.util.Date;
  5.  
  6.  
  7. class Counts {
  8. public static void main(String[] args) {
  9. System.out.println(new SimpleDateFormat("hh:mm a").format(new Date()));
  10. }
  11. }
Success #stdin #stdout 0.1s 380864KB
stdin
Standard input is empty
stdout
11:25 AM