diff --git a/MyDate.java b/MyDate.java index d5b517e..8915648 100644 --- a/MyDate.java +++ b/MyDate.java @@ -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(); diff --git a/Plans.java b/Plans.java index 2507255..9487088 100644 --- a/Plans.java +++ b/Plans.java @@ -1,4 +1,3 @@ -import java.util.Date; import java.util.HashMap; import java.util.Map; diff --git a/Program.java b/Program.java index 7b6a4ae..914ab09 100644 --- a/Program.java +++ b/Program.java @@ -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();