In this below program, am passing a string value as argument to method print(String) which is static and returns string. Though I get no error,am not getting output.
public class StringTest {
public static void main( String[] args )
{
String stw="iii";
print(stw);
}
public static String print( String str )
{
return str;
}
}