hey, i need help with a simple boolean decode. i need a program that, if character c that the user enters isnt the letter z, it comes out false, however if the user enters the character z, it comes out true. ive written it, compiled and it has no errors, however it doesnt work?
any help plzzzz =] thanks heaps
public class Decode {
public static boolean decode (char c) {
if (c == 'z') {
return true;
} else {return false;}
}
}
also, if possible, i need this style coding =]
Tags: