This is a Basic Java Calculator using If..ElseIf..Else Statement.
Popular Posts
-
This is a Basic Java Calculator using If..ElseIf..Else Statement.
-
import java.util.Scanner; class completename{ public static void main(String args[]){ Scanner user_input = new Scanner(System.in); ...
2012
Basic Calculator using If..ElseIf..Else
Posted on
Sunday, June 10, 2012
import java.util.Scanner;
class completename{
public static void main(String args[]){
Scanner user_input = new Scanner(System.in);
String first_name,last_name;
System.out.print("first name:");
first_name = user_input.next( );
System.out.print("last name:");
last_name = user_input.next( );
System.out.print(first_name + " " + last_name);
}
}
Java Code: Joining Two Strings from User Input
Posted on
Thursday, June 7, 2012