second Floor - Java java.util

Java examples for java.util:Second

Description

second Floor

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static void main(String[] argv) throws Exception {
        Calendar calendar = Calendar.getInstance();
        secondFloor(calendar);//from w w w  .j  av  a  2s . co m
    }

    public static void secondFloor(Calendar calendar) {
        calendar.set(Calendar.MILLISECOND, 0);
    }
}

Related Tutorials