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.
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 →
Java:
here is the sol:
import java.util.; import java.lang.; import java.io.; import java.math.;
public class Main {
}
public static int findPrimeDates(int d1, int m1, int y1, int d2, int m2, int y2) { storeMonth();
}