Skip to content

JOJO840/uppgift1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArraySorter

Info

This is a program in Java that will run an Array List with Integers and sort in proper order. There is 2 tests here, the First program "ARGS" is sorting the integers, the Second test is testing 5 different outcomes of arraylists of Integers. You have will 3 files to work with.

First Program "ARGS"

Steps.

  1. First step is to clone the repo "git clone https://github.com/JOJO840/uppgift1/" in the terminal.
  2. You will see a package called "src" go in here and you will see 2 other packages.
  3. Enter the Sorter package, here is 2 files named SortMain and Sorter.
  4. Open up the SortMain file, in here you will have to enter the array arguments "args" in the configurations.
  5. Click Run > Edit configurations enter the selected arguments you wish. Press Apply.
  6. Run the SortMain file by pressing SHIFT + F10.
  7. The program will sort this numbers in proper order.

Second Program "Testing the Sorter"

Info:

I have made a program that will run 5 tests of different arrays of ints. if the tests are running as they should, you will see a "OK" in the terminal. If it doesn´t work as should, then you will get an error "Expected array{1,2,3,4,5}" "You got {1,2,3,4}.

Steps.

  1. Go into src package.
  2. Open SortTest package, here you will see SortTest Java File, double-click it.
  3. Onced uponed run the program with SHIFT + F10.
  4. The program will now run the 5 different tests.
  5. if every test is good, meaning expected results are the same as the result, you will get an "OK".

END.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages