System.out.println("date1 is "+mmddyyyy1+" date2 is "+mmddyyyy2);
int mm1 = // *-* find the month value from mmddyyyy1
int dd1 = // *-* find the day
int yyyy1 = // *-* find the year
int mm2 = // *-* find the month value from mmddyyyy2
int yyyy2 = // *-* find the day
int dd2 = // *-* find the year
1
Expert's answer
2016-10-25T15:02:07-0400
public class Main {
public static void main(String[] args) { // TODO code application logic here String mmddyyyy1 = "12111995"; String mmddyyyy2 = "24102016";
System.out.println("date1 is " + mmddyyyy1 + " date2 is " + mmddyyyy2);
int mm1 = Integer.parseInt(mmddyyyy1.substring(0, 2)); int dd1 = Integer.parseInt(mmddyyyy1.substring(2, 4)); int yyyy1 = Integer.parseInt(mmddyyyy1.substring(4, 8)); int mm2 = Integer.parseInt(mmddyyyy2.substring(0, 2)); int dd2 = Integer.parseInt(mmddyyyy2.substring(2, 4)); int yyyy2 = Integer.parseInt(mmddyyyy2.substring(4, 8));
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment