Git Product home page Git Product logo

labs's People

Contributors

day-mon avatar elsklivet avatar shanew-18 avatar

Stargazers

 avatar

Watchers

 avatar

labs's Issues

Drivers do not have packages or imports

@tykoooo

The drivers are not declaring their package status despite this being a packaged products, which is causing a compilation error. Add package Drivers; to the head of each *Driver.java. Also, you are using packaged files in the Drivers without actually importing them. E.g. import Labs.ArrayQueue; will allow you to fix the cannot resolve ______ to a type errors. Make sure all of your implementations are done before you try to run, as a massive error stack popped up in regards to this.

Here is a stack trace when I try to run ArrayQueueDriver.java:

Attempting to create a new queue of integers...
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
        The declared package "" does not match the expected package "Labs"
        Queue cannot be resolved to a type
        The method add(T) of type ArrayQueue<T> must override or implement a supertype method
        The method offer(T) of type ArrayQueue<T> must override or implement a supertype method
        The method remove() of type ArrayQueue<T> must override or implement a supertype method
        The method poll() of type ArrayQueue<T> must override or implement a supertype method
        The method element() of type ArrayQueue<T> must override or implement a supertype method
        The method peek() of type ArrayQueue<T> must override or implement a supertype method
        The method contains(T) of type ArrayQueue<T> must override or implement a supertype method
        The method size() of type ArrayQueue<T> must override or implement a supertype method
        The method clear() of type ArrayQueue<T> must override or implement a supertype method
        The method isEmpty() of type ArrayQueue<T> must override or implement a supertype method
        The method toArray() of type ArrayQueue<T> must override or implement a supertype method
        The method toArray(T[]) of type ArrayQueue<T> must override or implement a supertype method

        at Labs.ArrayQueue.<init>(ArrayQueue.java:1)
        at Drivers.ArrayQueueDriver.main(ArrayQueueDriver.java:9)
  • Add package to heads

  • Import in all drivers

  • Implement overrides

  • Test and commit

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.