Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: LGPL 

import java.util.Date;

public class Main {

    public static Date getNextDay(Date daDate, int iDays) {
        long lTime = daDate.getTime();
        long lDay = 24 * 60 * 60 * 1000;

        for (int i = 0; i < iDays; i++) {
            lTime += lDay;
        }
        return new Date(lTime);
    }
}