⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.java

📁 用NETBEANS做的一个关于Java的小小的demo.大家赐教
💻 JAVA
字号:
/* * Test.java *  * Created on 2007-9-26, 23:12:59 *  * To change this template, choose Tools | Templates * and open the template in the editor. */package javaapplication1;import java.util.ArrayList;import java.util.Collection;import static java.lang.Math.*;/** * * @author Administrator */public class Test {        public static void main(String[] args) {                Collection<String> c = new ArrayList<String>();        c.add("aaa");        c.add("sss");        //print(c);        ArrayList<Integer> a = new ArrayList<Integer>();        a.add(22);        //int PI = 1;        double s = PI*2;        System.out.println(s);    }        public static void print(Collection<Object> c){        for(Object o : c)            System.out.println(o);    } }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -