Mine isn't doing that, this is what I've got and its working as you say it should. Can you see what's different from yours`
import java.io.*;
public class gender{
public static void...
Type: Posts; User: samfin
Mine isn't doing that, this is what I've got and its working as you say it should. Can you see what's different from yours`
import java.io.*;
public class gender{
public static void...
Your problem is your if statements. At the moment you've got gender==f
And from this statement
int m=0, f=0;
f and m are integers.
f is an int so when you type 'f' it won't match. You need...
Hi,
I've ran this and it does say Enter gender but it won't work beyond that. I'm guessing you want to enter m and it prints MALE and f to print FFEMALE. If you do then you've got gender==f and...