example
if (...){
return 0;
}
else (...){
return 1;
}

that do they mean?


thnaks in advance

That the method returns an int (as its declaration will show), and these are the lines that do that, obviously.

example
if (...){
return 0;
}
else (...){
return 1;
}

that do they mean?


thnaks in advance

I'd say they mean you'll be getting some errors while compiling this
the (...) in this example is only applicable for the if - part

if(test){
           // what to do if 'test' is 'true'
}
else{
          // what to do if 'test' is 'false'
}

I'm sure that with the explanations you have gotten so far, you will beyond any doubt understand what the other lines do, and when they are applied.

if it returns zero, it means your if statement is true. else (if your statement is false) it will return 1

commented: You resurrected a 3-year-old thread to post this? -3
if ( !noticeThreadIsOverTwoYearsOld){
  replyToThread();
}
else{
  dontReviveIt();
}

Closing this zombie now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.