тут не один вопрос, но можно решить
Как распарсить дату.
Calendar now = Calendar.getInstance();
int year = now.get(Calendar.YEAR);
int month = now.get(Calendar.MONTH) + 1; // Note: zero based!
int day = now.get(Calendar.DAY_OF_MONTH);
int hour = now.get(Calendar.HOUR_OF_DAY);
int minute = now.get(Calendar.MINUTE);
int second = now.get(Calendar.SECOND);
int millis = now.get(Calendar.MILLISECOND);
Теперь как создать цикл дат
try {
Calendar gcal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("d.M.yyyy");
Date start = sdf.parse("1.1.2000");
Date end = sdf.parse("1.1.3000");
gcal.setTime(start);
do {
Date d = gcal.getTime();
System.out.println(d);
gcal.add(Calendar.MONTH, 1);
} while (gcal.getTime().before(end));
} catch (ParseException exp) {
exp.printStackTrace();
}
А создать список в списке можно
ArrayList<ArrayList<String>> listOLists = new ArrayList<ArrayList<String>>();
// создаем внутренный список
ArrayList<String> singleList = new ArrayList<String>();
singleList.add("hello");
singleList.add("world");
// добавляем этот список в главный
listOLists.add(singleList);
// создаем внутренный список №2
ArrayList<String> anotherList = new ArrayList<String>();
anotherList.add("this is another list");
// добавляем этот список в главный
listOLists.add(anotherList);
String.split()
для разделения по точке? – LEQADA 22 ноя '15 в 20:53