0
package simplebanking;
import java.util.Scanner;
public class banker {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int y;
String c;
int i = 0;
System.out.println("enter your option ");
System.out.println("1 to create account");
System.out.println("2 to existing account ");
y = s.nextInt();
if (y == 1) {
c = s.next();
i++;
Accounts(c) = new Accounts();
}
}
}
什麼問題這不是在Stackoverflow中問問題的方式? –
你可以發佈'Accounts'對象的代碼嗎? –