Skip to content

ryleeeliou1/EliouRA4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integer Sorter Program

Java Status License Version Author

This program reads integers that are input from the user, sorts them, and prints out the result as a Stack.

This program demonstrates code reuse by:

  • Using Java Collections Framework ('List', 'Stack', and 'Collections.sort')
  • Factors input and sorting logic into a helper class ('NumberLists')

Compile & Run

cd src  
javac Main.java NumberLists.java  
java Main

Javadoc

cd src  
javadoc -d doc Main.java NumberLists.java  
open doc/index.html

Example:

Input:

5  
5 2 9 1 5 

Output:

Sorted Stack: [1, 2, 5, 5, 9]

Diagram

See attached PDF.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors