首页 > 技术文章 > YC

ljxe 2016-05-28 08:57 原文

package com.hanqi;
import java.util.*;

public class yc{



    public static void main(String[] args) {
        // TODO 自动生成的方法存根
        Scanner sc=new Scanner(System.in);
        try
        {
        int a=111,b=222;
        int c=b+a;
        System.out.println("运算结果为:"+c);
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
            System.out.println("运算结果出现异常"+ex.getMessage());
        }
        System.out.println("完毕");

    }

}

 

推荐阅读