PPrimitiveParameters.java program from open Texas code

Class name: PrimitiveParameters

Methods: go(),falseSwap(int x, int y),moreParameters(int a, int b). All are static methods with no returns, all three static methods have input parameters.

  • go() method : Fields: x and y . Primitive Type : Integer. Initialize the values of x and y. Calling the methods falseSwap(int x, int y),moreParameters(int a, int b) and print the values before and after each of these methods.
  • falseSwap(int x, int y)
  • Swap the values of x and y using temp field. Print the values of x and y before and after.

    • moreParameters (int a, int b) method

    Product of a and b is assigned to a. Assigned 12 to b. Swap the values of a and b using falseSwap() method.

    Print the values of a and b.