Hi, please find the below program iam getting the exception
Basically iam try to the format the
string[] , this string[] should be different date
pattern.
Iam getting the following exception :-
Exception in
thread "main" java.lang.IllegalArgumentException
at java.util.Date.parse(Unknown Source)
at java.util.Date.<init>(Unknown Source)
If i use try catch block iam getting the compilation error
StringToDate.java:17: exception java.text.ParseException is never thrown in body
of corresponding try statement
}catch(ParseException pe)
Thanks,
Sridhar.R