Skip to content

Instantly share code, notes, and snippets.

@smd877
Created March 5, 2012 07:35
Show Gist options
  • Save smd877/1977272 to your computer and use it in GitHub Desktop.
Save smd877/1977272 to your computer and use it in GitHub Desktop.
this is test
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class Sample1 {
/**
* @param args
*/
public static void main(String[] args) {
String str = "メンタルにがり";
System.out.println("print : " + str);
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
System.out.println("Now : " + sdf.format(cal.getTime()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment