java 类
摘要:
import java.util.Scanner;class add { /* * 一个Java程序文件中,可以同时有好几个类,但是只有一个类能加上public的限定词 * ,而且要求程序的文件名称和限定的public的类名称一样。class关键字说明这是一个类。 */ public int a, b; public int Add() { return a + b; }}public class _class { public static void main(String args[]) { Scanner cin = new Scanner(System.in); add A = new 阅读全文
posted @ 2011-08-13 21:24 more think, more gains 阅读(194) 评论(0) 推荐(0) 编辑