Shows String parameters in methods
public class name_1
{
public static void myName(String fname)
{
System.out.println(fname+" Kumari");
}
public static void main(String []args)
{
myName("Simran");
myName("Neha");
}
}
Java Method
Java Function
Java code to pass a string in method
#java #bluej #howtolearncodingforbeginners #howtostartcodingforbeginners #education #tutorial
On this page of the site you can watch the video online Java Program : Passing String Parameter In Methods with a duration of hours minute second in good quality, which was uploaded by the user My Study Hacks51 22 October 2024, share the link with friends and acquaintances, this video has already been watched 41 times on youtube and it was liked by 0 viewers. Enjoy your viewing!