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.
Showing posts with label Java Streams. Show all posts
Showing posts with label Java Streams. Show all posts
Saturday, November 23, 2013
Monday, November 18, 2013
Java File reading
Write a JAVA Program which reads a text file from the Command Line and prints it to the console.
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.
All the contents of the source files should be concatenated and written in destination file.
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.
Subscribe to:
Posts (Atom)