::ภาษา JAVA::...++โปรแกรมการใช้Substring แสดงวัน/เดือน/ปีเกิด++...
public class subString2 { public static void main(String[] args) { String strA = "Birth Day : 10/18/1989"; System.out.println(strA.substring(0, strA.length())); System.out.println("month :"+strA.substring(12, 14)); System.out.println("day :"+strA.substring(15, 17)); System.out.println("year :"+strA.substring(18, 22)); } }
Create Date : 16 กรกฎาคม 2551 |
Last Update : 16 กรกฎาคม 2551 13:36:46 น. |
|
1 comments
|
Counter : 1258 Pageviews. |
|
|
|