CS174: OOP - Drills - Array 3 Sort

Developed by Professor Tralie and Professor Mongan.


Exercise Goals

The goals of this exercise are:
  1. To do proper array indexing
  2. To allocate and populate new arrays
  3. To use conditional statements appropriately
  4. To properly define methods
Create a static method sort3Elements that takes in 3 integers and returns a 3-element array containing those integers in sorted order. For instance, if it receives the integers 7, 1, and 3, it should return the array {1, 3, 7}
Welcome to our online modules system! Be sure to log in with your Urinus ID before you proceed. For example, Professor Tralie's ID is ctralie. If you are not an Ursinus student, that's fine! Just make something up, and you can still run everything