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

Java: How to compare File Dates

import java.io.File;
public class File_Date
{
  private static String compare_File(String fichier1, String fichier2)
  {
  	String result="";
  	long

Java: get string Hash Code

public class StringHashCode {
  public static void main(String[] args) {
    System.out.println("Welcom".hashCode());
    System.out.println("sak

Java: How to use a generic Iterator on the collections

import java.util.ArrayList;
import java.util.Iterator;
class ArrayL_IterGern
 {
  public static void main(String args[])
  {
    ArrayList array_L =

Java: access password protected url using java.net.Authenticator class

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.Authenticator;
import java.net.InetAddress;
import java.net.Password

Java: How to determining If a Year Is a Leap Year

import java.util.GregorianCalendar;
public class LeapYear
{
  public static void main(String[] argv) throws Exception
  {
    GregorianCalendar

Java: Read a list of files and gzips each one

import java.io.*;
import java.util.zip.*;
public class GZipper {
  public final static String GZIP_EXTENSION = ".gz";
  public static void main(Strin

Java-Regular_Expression: Replacing lowercase letters

import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexUpper
 {
  public static void main(String[] argv) throws Exception

Java: Display 12-hour time format

import java.util.Calendar;
import java.util.Formatter;
public class HourFormat
 {
  public static void main(String[] argv) throws Exception {
    For

Java: How to use forin loop with Collection

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class ForInDemo {
  public static void main

Java: How to get the free space

import java.io.File;
public class DiskFreeSpace
 {
  public static void main(String[] args)
 {
    File[] racines = File.listRoots();
    for (i

Java: How to get Column Detail Information

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
pu

Java: How to create a file

import java.io.File;
import java.io.IOException;
public class Fichier
 {
  public static void main(String[] argv) throws Exception
  	 {
      File m

Java: How to Iterate through elements of LinkedList using Iterator

import java.util.Iterator;
import java.util.LinkedList;
public class Linked_Iter
{
  public static void main(String[] args)
  	 {
    LinkedList lk_L

Java: How to use multiple expressions in for loops

public class ForLoopExample 
{
  public static void main(String[] args) 
   {
    for (int i = 0, j = 0; i < 5; i++, j--)
      System.out.println

Java: How to clone Collections

import java.util.ArrayList;
import java.util.Iterator;
public class CloneCollection
{
  public static void main(String[] args)
  	{
    ArrayList list