Giter Club home page Giter Club logo

skawuma / project06_kawuma Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 90 KB

Project 04 and Project 05 are both Implementings programs that read given lists of Integer numbers from the scanned input and saves them into a Linked List and Stack respectively sorted from the smallest to the largest.

Home Page: https://github.com/skawuma/CSC6301OM_SU2024S4_Software-Design---Documentation

HTML 40.68% JavaScript 33.10% CSS 24.95% Java 1.27%
code-reuse documentation linked-list stacks

project06_kawuma's Introduction

Explanation:

Project 04 Implements a program that reads a list of Integer numbers from the scanned input and saves them into a Linked List sorted from the smallest to the largest

Lastly to generate my javadocs, i make sure am out of the src folder then run the command that is going to create the folder "doc" that is going to hold my javadocs

javadoc -d doc src/main/java/org/skawuma/StackImpl.java

Code ReUse

Example of code reuse in my program was

  1. Collections.sort()
    java.util.Collections.sort() method is present in java.util.Collections class. It is used to sort the elements present in the specified list of Collection in ascending order.

  2. Integer parseInt (String s)
    This method parses the String argument as a signed decimal integer object.

  3. String.valueOf()
    The java string valueOf() method converts different types of values into string.

  4. numbers.push()
    The Stack push() method pushes (appends) an element to a Stack. It can be used for Stack and Queues.

Explanation:

Project 05 is a maintenance task and not re-writing the program from scratch. Project 05 Implements a program that reads a list of Integer numbers from the scanned input and saves them into a Stack. sorted from the smallest to the largest

Code ReUse

Example of code reuse in my program was

  1. Collections.sort()
    java.util.Collections.sort() method is present in java.util.Collections class. It is used to sort the elements present in the specified list of Collection in ascending order.

  2. Integer parseInt (String s)
    This method parses the String argument as a signed decimal integer object.

  3. String.valueOf()
    The java string valueOf() method converts different types of values into string.

  4. numbers.add()
    The List add() method adds (appends) an element to a list. It can be used for both ArrayList and LinkedList.

project06_kawuma's People

Contributors

skawuma 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.