Best advice I can give is to apply all the amazing things you've learned about java up until this point to write some code that will solve the problems
Hint: do them one at a time
Type: Posts; User: Hammet27
Best advice I can give is to apply all the amazing things you've learned about java up until this point to write some code that will solve the problems
Hint: do them one at a time
A thing of beauty :)
Lol again?
The array needs to be an array of Bowl objects... The method signature should look like this
public static int countEmptyBowls(Bowl[] bowls) {
// method definition in here
}
Basically yes, although you need to edit your methods so you are working on the array you have passed to the method, not creating a new one and working on that as any data you create in a method will...
Meaning your method signature will need adjusting as well to specify the correct data type
When you use the [ ]operators you are asking for one element of the whole array, in your method at the end of the for loop i is equal to list.length (12) which terminates the for loop but then are...
Agreed, javac and java commands should be learnt and understood... I would actually recommend starting the learning process with just a text editor (Sublime Text 2, or Notepad++ are good) to write...
Why are you compiling at the command prompt anyway? If you're writing the code in netbeans it makes far more sense to build the project from within netbeans...
The last attempt it actually compiled, then threw an exception when it was run... Post your source code so we can see what the problem is
Sorry writing this on my phone so missed all of the problem, you haven't written a method isEven(), isOdd(), or isPrime(), which take no parameters, but will be working on the int that is assigned by...
You need to declare int number as a global variable, not local to your constructor, your int number is being destroyed as soon as constructor finishes... Once that is fixed all your other methods can...
Or "height"