Java Tutorial


class  SequenceBuffer
    public static void main(String[] args) 
               FileInputStream file1 = new FileInputStream(\"dataFile1.txt\");
               FileInputStream file2 = new FileInputStream(\"dataFile2.txt\");
               SequenceInputStream resultFile = null;

               resultFile = new SequenceInputStream(file1,file2);

               BufferedInputStream inBuffer = 
                        new BufferedInputStream(resultFile);

              BufferedOutputStream outBuffer =
                        new BufferedOutputStream(System.out);

              int ch;
              while((ch =!=1){
         }catch(Exception e) {}

    Related Post:
  1. Program to delete mth element from an input string

  2. Program of insertion sort

  3. Program to display bank account

  4. Program which creates an Array of character. Make one function with one argument as a character and that function throw a user defined exception

  5. Program to show an example of creating a String object from a StringBuffer Object

  6. Program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7

  7. Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference

  8. Program of binary search tree

  9. Program to show an example of using initialization block to initialize the data members of a class

  10. Develop a CORBA application that takes a string from client and returns whether it is palindrome

  11. Program to declare and initialize Boolean variables and print them on the Standard Output Device

  12. RMI based application, which reads a file with list of marks of student from a client, send it to server and find how many students having distinct

  13. CORBA program for displaying the date and time of the server machine, client machine and the difference between these two date and time

  14. Program to show insertion of StringBuffer, String objects and other Basic Data Types into a StringBuffer object

  15. Word list program that reads a text file and makes an alphabetical list of all the words in that file. The list of words is output to another file

  16. Program to show the use of Comparison operator (==) for comparing Strings

  17. Program to declare, initialize and print a String object

  18. Develop a CORBA based application for addition of two complex numbers and displaying the result on client side

  19. Corba program to encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time.

  20. Program to show the use of operator (<<) Shift Left filling with zero from the right

Didn't find what you were looking for? Find more on Program of concatenating and Buffering files