G
G
Gennady Rybak2021-03-09 14:31:29
Java
Gennady Rybak, 2021-03-09 14:31:29

Knocks out an error in Java classes, what should I change or read for the future?

You need to display the MyAccount variables in the console, and by analogy the following
60475bea9609d811767372.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan, 2021-03-09
Hasanly @azerphoenix

Read any Java book.
You can start with G. Schildt - A Beginner's Guide to Java.
And about the error:
you have 2 public classes in one java file (Main.java)

public class Main{} 
public class BANKACCOUT{}

Also note the Java naming convention. Instead of class name BANKACCOUT should be BankAccount

O
one pavel, 2021-03-09
@onepavel

the file name must match the name of the public class
Main.java and public class BANKACCOUT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question