Adding two values inputted by a user
<p>What should i do to make the two values which were inputted by the user to be added?</p>

<pre><code>import java.io.*;

public class InputOutput {
    public static void main(String[] args) {
        String base="";
        String height="";

        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        try {
            System.out.print("Input base value = ");
            base = input.readLine();
            System.out.print("Input height value = ");
            height = input.readLine();
        } catch(IOException e) {
            System.out.print("Error");
        }

        System.out.println("The base is "+base+height);
    }
}
</code></pre>
