Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: compute the difference between two dates

import java.util.*;
public class DifferenceDate
{
        public static void main(String[] av) {
                Date date1 = new GregorianCalendar(2

Java: Creating an RMI Server

import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
public class RMIServer {
    public static void main(String[] args) {
        try {

Java: Print Environment Variables

public class GetEnv
{
       public static void main(String[] argv)
       {
  System.out.println("System.getenv("PATH"") = "" + System.getenv(""PATH

Java: print the date and/or time in French format

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

Java: How to print today date using java.util.Calendar

// today is
System.out.println(Calendar.getInstance( ).getTime( ));

Java: print calendar

import java.util.*;
import java.text.*;
/** Print a month page.
 * Only works for the Western calendar. 
 */
public class CalendarPage {
    /** The

Java: Creating an RMI Server

import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
public class RMIServer {
    public static void main(String[] args) {
        try {

Java: How to write a client to use an RMI service

import java.rmi.*;
import java.util.*;
public class RMIClient
{
    protected static RMIContract RMIClt = null;
    public static void main(String[]

Java: Compute the difference between two dates

import java.text.SimpleDateFormat;
import java.util.Calendar;
public class CalAjout{
  public static void main(String[] av) {
    Calendar today

Java: Print Environment Variables

public class GetEnv
{
       public static void main(String[] argv)
       {
  System.out.println("System.getenv("PATH"") = "" + System.getenv(""PATH

Java: Get Date using java.util.Date

// todays is
System.out.println(new java.util.Date( ));

Java: print calendar

import java.util.*;
import java.text.*;
/** Print a month page.
 * Only works for the Western calendar. 
 */
public class CalendarPage {
    /** The

Java: Get Date using java.util.Date

// todays is
System.out.println(new java.util.Date( ));
Comments Off on Java: Find the difference between two dates

Java: Find the difference between two dates

import java.util.*;
public class DifferenceDate
{
        public static void main(String[] av) {
                Date date1 = new GregorianCalendar(2

Java: Defining the RMI Contract

import java.rmi.*;
import java.util.Date;
public interface RMIContract extends Remote
{
    // get the current date on the remote
    public Date get