We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
this is java solution , i have commented on which line we have to do the changes and what we have to change
public class Main {
public static int month[];
public static void main (String[] args) throws java.lang.Exception {
Scanner in = new Scanner(System.in);
month = new int[15];
String s = in.nextLine();
StringTokenizer str = new StringTokenizer(s, "- ");
int d1 = Integer.parseInt(str.nextToken());
int m1 = Integer.parseInt(str.nextToken());
int y1 = Integer.parseInt(str.nextToken());
int d2 = Integer.parseInt(str.nextToken());
int m2 = Integer.parseInt(str.nextToken());
int y2 = Integer.parseInt(str.nextToken());
int result = findPrimeDates(d1, m1, y1, d2, m2, y2);
System.out.println(result);
Prime Dates
You are viewing a single comment's thread. Return to all comments →
this is java solution , i have commented on which line we have to do the changes and what we have to change
public class Main {
}
public static int findPrimeDates(int d1, int m1, int y1, int d2, int m2, int y2) { storeMonth();
}