Showing posts with label Java Streams. Show all posts
Showing posts with label Java Streams. Show all posts

Saturday, November 23, 2013

Java BufferedReader & StreamTokenizer Example

Write a method that will take a string containing integers and return the sum of the numbers present in the string. For example, given the string "10 2 20 30" should print 62.

Monday, November 18, 2013

Thursday, October 24, 2013

Java Program for concating File content

Write a JAVA Program which reads a number of text files from the command line and concatenates the contents of the files into the last file entered on the command line.

Example:

Java Concatenate src1.txt src2.txt src3.txt dest.txt

All the contents of the source files should be concatenated and written in destination file.