cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA code

Former Member
0 Kudos

Hi,

can u please help me by providing the codings for concatinating the string with currentdate in java.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you very much

Former Member
0 Kudos

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

Former Member
0 Kudos

u can use directly concat function and CurrentDate in Standard Function in Message Mapping itself...

No need to go for UDF for this