2007-11-03 01:25:48T.H.

Java 所有稅&密碼輸入

請需要者自行服用,請謹慎RUN
變數名稱請改


1.
public class s96101153
{public static void main(String[] argv)
{
long people=23000000L;
int TaiBe=9876;

System.out.println(”該年度的所有稅總收入為:”+people*TaiBe+” 元”);
}
}


2.
import java.io.*;
public class s96101153
{public static void main(String[] args)throws
java.io.IOException
{BufferedReader InCode = new BufferedReader(new InputStreamReader(System.in));

System.out.print(”請輸入密碼: ”);
String In = InCode.readLine();
String SysCode =”hello”;

System.out.println(”密碼正確? ” +SysCode.equals(In));
System.out.println(”妳輸入的密碼: ”+In);
System.out.println(”正確的密碼: ”+SysCode);
}
}