Giter Club home page Giter Club logo

uppgift1's Introduction

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.

uppgift1's People

Contributors

jojo840 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.