Sunday, November 6, 2011

java program to add 2 strings

//include this program in your package class calc { public static void main(String args[]) { System.out.println(args[0]+args[1]); } } /*run the program and enter 2 strings like,abc def output:abcdef */

No comments:

Post a Comment

ec2-user@ec2 Permission denied