Admin
Investor Persona
File name: method2.java
- Code:
public class method2{
public static void main(String[] args){
int value=5;
callvalue(value);
}
public static void callvalue(int x)
{
System.out.println("I am the text inside method callvalue");
System.out.println("I received the value of"+x+"from the main program");
}
}
No Comment.