- //import java.util.Scanner;
- import java.io.*;
- import java.util.*;
- public class AaddB {
- public static void main(String[] args)
- {
- int a = 0, b = 0, c =0;
- Scanner input_data = new Scanner(System.in);
- try
- {
- // System.out.println("please input a number:\\n");
- a = input_data.nextInt();
- b = input_data.nextInt();
- c = a + b;
- // System.out.println("c = " + c + "\\n");
- System.out.println(c);
- }
- catch(Exception e)
- {
- System.out.println("Over the largest number\\n");
- }
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/1705201614656.html
来源: http://www.codesnippet.cn/detail/1705201614656.html