Yep. This was the problem. Thanks!
Type: Posts; User: NPVinny
Yep. This was the problem. Thanks!
public class BikeShop {
private Bike[] bikes;
private int totalbikes;
private double gross;
private final static int SIZE = 30;
//Constructor method
public BikeShop() {
...
You could have easily said that in your last post.
public void listDetails() {
int i;
System.out.println();
System.out.println("Name Size Color ...
Sorry, should have mentioned that that method is part of a class the professor provided, and we aren't supposed to touch.
Here's what it looks like:
public void addNew(Bike b) {
if...
I'm in my first Java class and I'm having a hard time figuring out why this code isn't working for my assignment. The code here is asking the user to input the name of a bike. inStock will check...