私はJavaの初心者で、文字列インスタンス変数を追加するのに助けが必要です. 私は自分の質問をする方法さえ本当に知りませんが、
public class Account {
private int AccountNumber;
private int FirstName;
private int LastName;
// ok here is where im stuck, i realize that Firstname and LastName are not integers but how else can i make a instance variable of them?
private double balance;
public Account(double initialBalance, int getFirstName, int getLastName, int getAccountNumber) {
//Int is not the correct type for FirstName and LastName but I dont know what else to call it. Any ideas?
FirstName = getFirstName;
LastName = getLastName;
AccountNumber = getAccountNumber;
}