Answer to Question #255602 in Java | JSP | JSF for Dydy

Question #255602
Write a Java program that the user can enter thier name, account number, account balance and credit account.
1
Expert's answer
2021-10-23T13:53:53-0400
import java.util.Scanner;


public class App {
	/**
	 * The start point of the program
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		// name, account number, account balance
		Scanner keyBoard = new Scanner(System.in);
		System.out.print("Enter your name: ");
		String name = keyBoard.nextLine();
		System.out.print("Enter your account number: ");
		String accountNumber = keyBoard.nextLine();
		System.out.print("Enter your account balance: ");
		double accountNalance = keyBoard.nextDouble();
		keyBoard.close();


	}


}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS