帮帮忙,改改,填补完整。怎么写的
package qwer;import java.util.Scanner;
public class xingzuo {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println("请输入您的出生月日");{
String str=new String();
str=sc.next();
System.out .println(" ");
if(time>=0321&&time<=0419)
System.out.println("您的星座为白羊座!");
else if(time>=0420&&time<=0520)
System.out.println("您的星座为金牛座!");
else if(time>=0521&&time<=0621)
System.out.println("您的星座为双子座!");
else if(time>=0622&&time<=0722)
System.out.println("您的星座为巨蟹座!");
else if(time>=0723&&time<=0822)
System.out.println("您的星座为狮子座!");
else if(time>=0823&&time<=0922)
System.out.println("您的星座为处女座!");
else if(time>=0923&&time<=1023)
System.out.println("您的星座为天平座!");
else if(time>=1024&&time<=1122)
System.out.println("您的星座为天蝎座!");
else if(time>=1123&&time<=1221)
System.out.println("您的星座为射手座!");
else if((time>=1222&&time<=1231)||(time>=0101&&time<=0119))
System.out.println("您的星座为魔蝎座!");
else if(time>=0120&&time<=0218)
System.out.println("您的星座为水瓶座!");
else if(time>=0219&&time<=0320)
System.out.println("您的星座为双鱼座!");
else
System.out.println("输入的时间不在判断的范围之内!");
}
}
}
}