public static boolean Test (String temp) throws IOException
        { 
        int flag=0;
    for(int i=0;i<temp.length();i++)
    {
    if ((temp.substring(i,1)=="0"||(temp.substring(i,1)=="1")))
    flag+=1;
    else
    { 
    System.out.println("You must enter 0 or1!!\n");
    temp = bufferedreader.readLine();
   
    break;
      
    }
   
    }
      
    if (flag==temp.length())
    return true;
   
    else
    Test(temp);
   
    }
编译时老是提示最后一行有缺少返回语句错误.哪位大哥能给个指点?谢谢!!