Java Date & Time and Regex

Java provides he Date class available in java.util.*; packages, this class encapsulates the current date & time.

contructors: Date() , Date(long millisec)
boolean after(Date date)
int compareTo(Date date)
boolean equals(Object date)

import java.util.*;
public class Date {
public static void main(String[] args)
	Date date=new Date();

Java Regex
Will work on regex later but it use java.util.regex package for pattern matching with regular expressions

It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published. Required fields are marked *