Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
h
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_72 import java.util.Scanner; import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { //Display the program values. String firstName; //Get first name. String LastName; //Get last Name. double social; //Get the secirity number. double phone; //Get the phone number. String address; //Get the address. //Get the scanner method. Scanner keyboard = new Scanner(System.in); //Ask the user to inter his first Name. System.out.print("What is your first name"); firstName = keyboard.nextLine(); } }
run
|
edit
|
history
|
help
0
add static
Meena
Fraction implementation using oops in java
move zeros to end of array
Airbnb-QueueLinkedList-2/3
Bubble Sort Java 2
frequency of char
Length of longest substring
Triangle
Date and Time