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...