Answers for "parameter in method java"

0

method parameters java

public class Main {
  static int myMethod(int x) {
    return 5 + x;
  }

  public static void main(String[] args) {
    System.out.println(myMethod(3));
  }
}
// Outputs 8 (5 + 3)
Posted by: Guest on August-11-2021
1

what are parameters in java

public static void hello (String hey, String wassup) 
//the paramter in this case is located in the parenthesis
Posted by: Guest on March-26-2021

Code answers related to "parameter in method java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language