Design ideas:
<1> declaring string characters, defining variables;
<2> enter characters from the keyboard;
<3> defines shaping numbers, converts characters into numbers, and assigns values to defined shaping;
<4> The addition operation of the number, ending.
Import Java.util.Scanner;
public class Example {
public static void Main (String args[]) {
String STR1,STR2,STR3; Definition of a string
System.out.println ("Please enter 3 numeric characters:");//input of a string
Scanner reader=new Scanner (system.in);
Str1=reader.next ();
Str2=reader.next ();
Str3=reader.next ();
System.out.println ("Three characters in turn:");
System.out.println (STR1);//output of string
System.out.println (STR2);
System.out.println (STR3);
The definition of an int num1,num2,num3;//integer
SYSTEM.OUT.PRINTLN ("The result of conversion to a number is:");
Num1=integer.parseint (STR1);//conversion of array characters to numbers
Num2=integer.parseint (STR2);
Num3=integer.parseint (STR3);
System.out.println (NUM1);//output of digital
System.out.println (NUM2);
System.out.println (NUM3);
The addition of the int sum;//number
SUM=NUM1+NUM2+NUM3;
System.out.println ("Three numbers Add the result:" +sum);
}
}
Added output of characters