it is show that error in the 2nd If statement why???
import java.security.SecureRandom;
public class Test
{
public static void main(String[] args)
{
System.out.println("T : " + Tfun());
}
public static String Tfun()
{
SecureRandom r = new SecureRandom();
int T = 1+r.nextInt(10);
if(T >= 1 && T <= 5)
Integer.toString(T);
return "Fast_Plod";
if(T >= 6 && T <= 7)
Integer.toString(T);
return "Slow_Plod";
}
}
how to fix that? what is the problem exactly?