Created
March 5, 2012 07:35
-
-
Save smd877/1977272 to your computer and use it in GitHub Desktop.
this is test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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