#Does anyone know how to do this

6 messages · Page 1 of 1 (latest)

ionic trench
#

I started with:
public class BankAccount {
private int holdersName ;
private int accountNumber ;
private int balanceInTheAccount ;

public BankAccount ( “Sue” , 123400 , 500 () ) ;

public static void main (String [] args )
{
BankAccount = new BankAccount (999999)
}
}

solemn tulipBOT
#

This post has been reserved for your question.

Hey @ionic trench! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

#
Help Guidelines

1. Don't ask questions like "Can I ask ...?" or "Can someone help me?". It's easier for everyone involved if you provide a detailed description of your problem up-front; this makes it more likely for helpers to want to help, and more likely that you'll get an answer quickly. Please provide code snippets and error messages (if any) to help us help you!

2. Please create a post in #1023632039829831811 for your questions. Do not use other people's posts for your questions.

3. You may use the /help ping command if your question is urgent.
Abusing this will result in warnings and/or a ban.

4. Do not ask for help with exams or homework. You may ask for help with understanding individual concepts and parts of a question, but homework and exam questions that show little effort on your part will most likely go unanswered and may be removed.

5. Do not ask your question if you didn't at least try to solve the problem yourself, are ignorant, or, instead of trying to improve, ask repeating, simple, questions.

6. Format your code using Discord's triple-backtick syntax.

7. For reasons similar to those of Stack Overflow, we currently do not allow content created by ChatGPT while helping other people. You may still share its content, when you are not helping somebody and are not looking to deceive others, for example when discussing ChatGPT and its technology.

cloud yacht
#

4,5

lean citrus
#

You will need to create the bankaccount class.
This new class with have the instances: name, account number & balance.
This class will also new 2 constructors. 1 constructor to init the bank account itself and a constructor that will take the instances provided as parameters.

The bank account class won't need the main method.