[Solved] Java If command
As the Answer by NFE, and Niks Tyagi has showed, you Should to write: if (f.equals(“bif”)) { System.out.println(“BIF FAN”); } else { System.out.println(“Doesn’t Seem like a FAN”); } But if you want to do the second part too with the if expression, you can write like following. if (f.equals(“bif”)) { System.out.println(“BIF FAN”); } if(!f.equals(“bif”)){ System.out.println(“Doesn’t … Read more