Comments (12)
Is the class/interface that NormalCab is a child of named Driver? If not you can try renaming it.
This works for me as well. Probably from past iterations, the cabs must inherit/implement the Driver class/interface and then there is probably some modification from the past that makes us don't know that we have to use that specific naming.
Also another one is to rename your jsh from level 5 to level5.jsh
.
This worked for me, seems like we have to use specific Class names in the PE exam as well (I named it CabDriver instead of Driver originally)
As for this, I think it's not always the case, feels like a clarity issue to me π
from 2122-s2.
I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?The test case worked without submitting the
Comparator
interface. It is conflicting with Codecrunch's own. Hope it works for you
Thank you so much! It worked after I dropped my Comparable interface from the submission files. I misunderstood the text to mean that I had to create my own Comparable interface.
from 2122-s2.
Isn't this due to runtime error? I am facing the same issue and it shows runtime error at the top.
from 2122-s2.
I'm not sure why it's happening, but I think it's trying to go through a bunch of test cases in a list and for some reason the list can't be loaded. I didn't have to implement class BookingStub so I don't think it's required.
from 2122-s2.
I didn't implement the class BookingStub
and variable list
. I think those are part of the private sample cases within code crunch that tests for edge cases. It's possible that they failed to run as a result of runtime error.
from 2122-s2.
I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?
from 2122-s2.
Gave my TA a ping to notify on this issue. Was also affected by these testcases after 2/5. Likely that the past iterations of this Lab was done using class BookingStub instead of Booking?
from 2122-s2.
I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?
Currently facing the same issue too, wondering why there has to be a sort method.
from 2122-s2.
hi! I might be entirely wrong, but I think that BookingStub may be extending on your Booking.java class and is attempting to sort certain bookings to check your code. Not sure if this is why the error occurs, but maybe you can check on whether you have implemented Comparable and coded the compareTo method correctly?
from 2122-s2.
Is the class/interface that NormalCab is a child of named Driver? If not you can try renaming it.
from 2122-s2.
Is the class/interface that NormalCab is a child of named Driver? If not you can try renaming it.
This worked for me, seems like we have to use specific Class names in the PE exam as well (I named it CabDriver instead of Driver originally)
from 2122-s2.
I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?
The test case worked without submitting the Comparator
interface. It is conflicting with Codecrunch's own. Hope it works for you
from 2122-s2.
Related Issues (20)
- PYP Q 2d HOT 2
- PYP last qn HOT 7
- Recitation 09-extra pdf not on luminus HOT 2
- PECS HOT 5
- QN5 17/18S1 [Why is A not the answer?] HOT 4
- Q5 HOT 3
- Can anyone explain what is a functor and a monad isπ HOT 8
- Mock Q4b HOT 9
- Impending P.A.N.I.C HOT 22
- AY19/20 SS1 qn 7 HOT 4
- Question on reduce function HOT 4
- AY18/19 Q2 Cyclical Dependency HOT 3
- error in obtaining int[] from a stream HOT 4
- Q3d) When I solved the game of Life problem for labs, I used loops. Can someone post their code using streams for 3d and 3e ? HOT 2
- Assertion questions HOT 2
- Mock 4a help HOT 13
- What kind of stream operations allow us to use .parallel() operation? HOT 4
- Final Submission Folder Disappeared HOT 6
- Anyone solved the RedLight , GreenLight, AmberLight problem? Can you please post your code? HOT 2
- excercise 2 inheritence question
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2122-s2.