This commit is contained in:
Anitonchik 2024-06-07 16:21:20 +04:00
parent f3988c2b2e
commit c770375b29
3 changed files with 3 additions and 6 deletions

View File

@ -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();

View File

@ -1,4 +1,3 @@
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

View File

@ -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();