What wrong in my code??
My brain is exploding!
Resolved
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Ilia Kalugin
20 December 2019, 11:14
I understand what my mistake is. It’s necessary to somehow make the incoming data of the month to lowercase letters. But I do not know how...
0
Ilia Kalugin
20 December 2019, 11:04
public class Solution {
public static void main(String[] args) {
System.out.println(isDateOdd("MAY 1 2013"));
}
public static boolean isDateOdd(String date) {
SimpleDateFormat fdate = new SimpleDateFormat("MMM d yyyy", Locale.ENGLISH);
Date datecurr = fdate.parse(date);
Date yearStart = new Date();
yearStart.setHours(0);
yearStart.setMinutes(0);
yearStart.setSeconds(0);
0
Ilia Kalugin
20 December 2019, 11:03
It is attached.
0
Anthony Chalk
20 December 2019, 10:50
Can you attach it?
0