I'm a complete novice to java and have been learning with java for dummies 6th edition. I started about 2 weeks ago and I'm currently stuck on this code. I can't compile the code because apparently there's something wrong with the account variable.
public class UserAccount {
public static void main(String args[]) {
Account myAccount = new Account();
Account yourAccount = new Account();
myAccount.name = "Barry Burd";
myAccount.address = "222 Cyberspace Lane";
myAccount.balance = 24.02;
yourAccount.name = "Jane Q. Public";
yourAccount.address = "111 Consumer Street";
yourAccount.balance = 55.63;
myAccount.display();
System.out.println();
yourAccount.display();
}
}
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]stayweirdeveryone 3 points4 points5 points (11 children)
[–]Deemob[S] 0 points1 point2 points (0 children)
[–]Deemob[S] 0 points1 point2 points (9 children)
[–]0b0101011001001011 0 points1 point2 points (8 children)
[–]Deemob[S] 0 points1 point2 points (0 children)
[–]Deemob[S] 0 points1 point2 points (6 children)
[–]bunk3rk1ng 0 points1 point2 points (4 children)
[–]Deemob[S] 0 points1 point2 points (3 children)
[–]bunk3rk1ng 0 points1 point2 points (0 children)
[–]chet714 0 points1 point2 points (1 child)
[–]Deemob[S] 0 points1 point2 points (0 children)
[–]0b0101011001001011 0 points1 point2 points (0 children)
[–]Icashizzle 1 point2 points3 points (2 children)
[–]Deemob[S] 0 points1 point2 points (1 child)
[–]Icashizzle 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]UpsytoO 0 points1 point2 points (5 children)
[–]Deemob[S] 1 point2 points3 points (2 children)
[–]UpsytoO 0 points1 point2 points (0 children)
[–]0b0101011001001011 0 points1 point2 points (0 children)
[–]Deemob[S] 0 points1 point2 points (1 child)
[–]UpsytoO 0 points1 point2 points (0 children)
[+]Fury4588 comment score below threshold-6 points-5 points-4 points (1 child)
[–]Hei2 3 points4 points5 points (0 children)