12:18 am - Thursday March 23, 2017

Author Archives: Mathan Lal

FileOutputStream example program for getFD() () in java

/** *@author: candidjava *@description: FileOutputStream example program for getFD()() in JAVA **/ import java.io.FileDescriptor; import java.io.FileOutputStream; import java.io.IOException; public class FileOutputStreamDemo...

FileOutputStream

FileOutputStream example program for getFD() () in java FileOutputStream example program for write(int b) () in java BACK

FileInputStream example program for skip(long n) in java

/**  *@author: candidjava  *@description:  **/ import java.io.IOException; import java.io.FileInputStream; public class FileInputStreamDemo {     public static void main(String[] args) throws IOException {         FileInputStream...

FileInputStream example program for close() in java

/** @program : FileInputStream example program for close() in java @author : "candid" @date : 29.10.12 */ import java.io.FileInputStream; import java.io.IOException; public class FISDemo { public static void main(String[]...

FileInputStream example program for available() in java

/** * @author : candidjava * task : FileInputStream example program for available() in java */ import java.io.FileInputStream; class FIStream { public static void main(String[] args) { try { FileInputStream fi = new FileInputStream("sample.txt");//...

FileInputStream

FileInputStream example program for available() in java FileInputStream example program for close() in java FileInputStream example program for skip(long n) in java BACK

BufferedInputStream example program for skip(long n) in java

/** program : BufferedInputStream example program for skip(long n) in java author : "candid" date : 21.11.12 */ //java code import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FilterInputStream; import...

BufferedInputStream example program for reset() in java

/** * @author: candidjava * @description: in JAVA example program for */ import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; public class BufferedInputStreamDemo...

BufferedInputStream example program for close() in java

/** * @author candidjava * @description:BufferedInputStream example program for close() in java */ import java.io.File; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import...

BufferedInputStream example program for available() in java

/** * @author candidjava * @description:BufferedInputStream example program for available() in java */ import java.io.FileWriter; import java.io.BufferedWriter; import java.io.FileInputStream; import java.io.BufferedInputStream; import...

BufferedInputStream

BufferedInputStream example program for available() in java BufferedInputStream example program for close() in java BufferedInputStream example program for reset() in java BufferedInputStream example program for skip(long n) in java BACK

BufferedOutputStream example program for write(int b) in java

/** * @description: BufferedOutputStream example program for write(int b) in java */ import java.io.FileOutputStream; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.FileNotFoundException; public...

BufferedOutputStream

BufferedOutputStream example program for write(int b) in java   BACK

Calendar in java example program setTimeInMillis(long millis)

/** @author:candidjava.com @description:Calendar in java example program setTimeInMillis(long millis) */ import java.util.Calendar; public class SetTime { public static void main(String args[]) { Calendar c = Calendar.getInstance(); System.out.println(c.getTime()); c.setTimeInMillis(6000); System.out.println("after...

Calendar in java example program setFirstDayOfWeek(int value)

/** *@author:candidjava.com *@description: Calender in java example program setFirstDayOfWeek(int value); */ import java.util.Calendar; public class CalendarSetFirstDayOfWeek { public static void main(String[] args) { Calendar...

Calendar in java example program set(int year, int month, int date, int hour, int minute, int second)

/** *@author:candidjava.com *@description: Calender in java example program set(int year,int month,int date,int hour,int minute,int second) */ import java.util.Calendar; public class CalendarSet { public static void main(String[]...

Calendar in java example program hashCode()

/** @author:candidjava.com @description:calendar  in java example program hashCode() */ import java.util.Calendar; public class HashCode { public static void main(String args[]) { // create a calendar Calendar calen = Calendar.getInstance(); //...

Calendar in java example program getTimeInMillis()

/** *@author: candidjava *@description: Calendar in java example program for getTimeInMillis() **/ import java.util.Calendar; public class CalendarDem { public static void main(String[] args) throws InterruptedException { // create...

Calendar in java example program getMaximum(int field)

/* @author:candidjava.com @description:  Program that Returns the maximum value for the given calendar field of this Calendar instance. */ import java.util.Calendar; public class CalendarMax { void Max_Calendar() { Calendar c = Calendar.getInstance();...

Calendar in java example program get Instance(TimeZone zone, Locale aLocale)

/** *@author:candidjava.com *@description: Calender in java example program getInstance(TimeZone zone,Locale aLocale) */ import java.util.Calendar; import java.util.Locale; import java.util.TimeZone; public class CalendarGetInstance { public...