Re: [問題] 字串分割重組比較好的寫法

作者: chen1025 (小陳)   2017-09-29 02:35:38
這想法很簡單,年份要取代日,日要取代年分,
因此可以用字串的replace來處理。
String X = "28/09/2017 (星期二)";
//X.substring(0, 2)

Links booklink

Contact Us: admin [ a t ] ucptt.com