on 08-26-2008 7:31 AM
Hi,
can u please help me by providing the codings for concatinating the string with currentdate in java.
Hi sujatha anandhan ,
Please find the code:
Class ConcatDateString {
Public static void main(String args[]) {
System.out.println(u201CDate = u201D + new java.util.Date());
}
}
cheers!
gyanaraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
import java.io.*;
public class CombinString{
public static void main(String[] args) throws IOException{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter First String:");
String str1 = bf.readLine();
System.out.println("Enter Second String:");
String str2 = bf.readLine();
System.out.println("Combin string example!");
String com = str1.concat(str2);
System.out.println("Combined string: " + com);
}
}
output is :
Enter First String:
RoseIndia
Enter Second String:
NewstrackIndia
Combin string example!
Combined string: RoseIndiaNewstrackIndia
or
if u want current date
java.text.SimpleDateFormat
Hope this helps
Regards,
Surya
Edited by: rama suryanarayana on Aug 26, 2008 9:00 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u can use directly concat function and CurrentDate in Standard Function in Message Mapping itself...
No need to go for UDF for this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.