Write (define) a public static method named isSorted, that takes three arguments (all arguments will be ints). This method should determine if the three argument values are in ascending order. The method should return the boolean value true if the argument values are in ascending order, otherwise it should return false. Examples: isSorted(1, 2, 3) will return true isSorted(2, 3, 1) will return false isSorted(2, 3, 3) will return true

Respuesta :

The program is an illustration of methods

What are methods?

Methods are collections of named code blocks, that are executed when called or evoked.

The isSorted method

The isSorted method written in Java, where comments are used to explain each line is as follows

//This defines the isSorted method

  public static boolean isSorted(int a, int b, int c){

  if(a < b && b < c){

//This returns true if the three argument values are in ascending order    

 return true;

  }

//This returns false if the three argument values are not in ascending order

        return false;

  }

Read more about methods at:

https://brainly.com/question/26180959