我正在使用Jfreechart。我有這樣的代碼:如何將字符串轉換爲Java中的RegularTimePeriod?
TimeSeries t1 = new TimeSeries("EUR/GBP");
t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(1.5807));
但我從我的SQL查詢得到String
。 TimeSeries只接受RegularTimePeriod
或TimeSeriesDataItem
。
請讓我知道如何將String
轉換爲RegularTimePeriod
。
在此先感謝。
哪個字符串?字符串是什麼樣的? – 2009-01-07 16:42:41