Task
This commit is contained in:
parent
f3988c2b2e
commit
c770375b29
@ -1,7 +1,4 @@
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
public class MyDate {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
|
@ -1,4 +1,3 @@
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import java.util.Objects;
|
||||
import java.util.Scanner;
|
||||
public class Program {
|
||||
public static void main(String[] args) {
|
||||
@ -13,7 +12,9 @@ public class Program {
|
||||
System.out.println("Введите ваши планы на сегодня: ");
|
||||
String write = scanner.nextLine();
|
||||
String[] words = write.split(" ");
|
||||
MyPlan.Write(words);
|
||||
if (!MyPlan.Write(words)){
|
||||
System.out.println("Строка пустая");
|
||||
}
|
||||
break;
|
||||
case "#read":
|
||||
MyPlan.Read();
|
||||
|
Loading…
Reference in New Issue
Block a user