/*
This is a simple string concatenation.
*/
public class concatTwoWords{
import java.io.*;
import java.lang.*;
public static void main(String[] args){
String firstWord = "";
String secondWord = "";
String concatenatedWord = "";
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter First Word: ");
firstWord = input.readLine();
System.out.print("Enter First Word: ");
secondWord = input.readLine();
concatenatedWord = firstWord + secondWord;
System.out.print("Put them together, you'll get: " + concatenatedWord);
}
}
Wednesday, September 24, 2008
Sample Program (String Concatenation)
Posted by
Carlo Carollo
at
8:49 AM
Labels: Programming
Subscribe to:
Post Comments (Atom)
Search
Categories
- Extra Income (1)
- Funny (2)
- Just a Thought (6)
- Outings (1)
- Programming (9)
- Santos (1)
- Thesis/Project Ideas (1)
- Troubleshooting (4)
- Ultimate Fighting Championship (3)
- Web Programming (7)
Featured Video
News Bloopers!!!

0 comments:
Post a Comment