boolean can i access that value boolean in my main mathod ? i ment can i use it on if
Not sure what u exactly asking for. I give it a try: U want to know if u can access the return value of let's say boolean IsEqual (char one, char two); Yes u can. IsEqual ('x', 'o') (or the builtin equals function) gets replaced by the return value. So u can write if (IsEqual ('a', 'b')) { system.out.writeln ("equal input chars"); }
Обсуждают сегодня