Im trying to store different types of food in this class called fishfeeder, and when declaring these values as such i am having the specified issued.
What you just recently told me creates a...
Type: Posts; User: BeardedAxeWound
Im trying to store different types of food in this class called fishfeeder, and when declaring these values as such i am having the specified issued.
What you just recently told me creates a...
Im trying to store different types of food in this class called fishfeeder, and when declaring these values as such i am having the specified issued.
What you just recently told me creates a...
If i am to put the ";" after :foodType = "fish food pellets". Then the rest of that code will be dismissed and it says that the line of code is not a statement.
Cheers
Sorry i am unable to get an error message to that extend as i am using bluej sorry but all that is said is: ";" is expected.
Thanks
Thanks for the reply, but that doesnt work either as its saying i need ";" after the: "fish food pellets"(;)..
what is the problem here?
Thanks alot
This is the code and the line which is causing problems is within ##
/*
* This is the class in which the fish will be feed when i am out and not home
*/
public class FishFeeder
{
Hi there, it said : " bad operand types for binary operator '||'
Hi there, i am trying to declare 4 types of fish food types in the constructor but keep getting compiling problems so was wondering how to do it?
:foodType = "fish food pellets" || "spirulina...
Bluej problem with adding object from another class to a different class?
Hi there i am trying to create a fish tank which has fish and a fish feeder, i have created methods and objects for the fish...
Thank you very much it finally works :)
Hey Norm, i am unsure of what to exactly write for that method therefore the method which i have written there is incorrect.
So i was wondering what exactly I would have to write to achieve the...
Hi there i am relativity new to java programming and i am having trouble with creating a code which increases the fish's length by 1% of the amount of food eaten?
Here is the code:
public...