不论什么一种语言数组都是比較重要的,其作为一种基础对象应用非常多,如Java你肯定少不了集合(List,Map)这些.因此本篇主要记录JS的数组使用和经常用法.要点例如以下: 1,数组创建 两种方式: var stu = new Array(); var stu1 = []; 这就和定义对象一样: var cat = new Object(); ]; 数组里的东西能够是不同类型的,数组里面能够是基础类型也能够是对象或数组: var array = [ , "netease", {col…
java语言程序设计基础篇笔记1. 几种有名的语言COBOL:商业应用FORTRAN:数学运算BASIC:易学易用Visual Basic,Delphi:图形用户界面C:汇编语言的强大功能和易学性,可移植性C++:系统软件C#:.netjava:互联网应用程序2. java语言规范:java.sun.com/docs/books/jls 对语言的技术定义javaAPI(Application Program Interface):预定义的类和接口3.javaEE:服务器端的应用程序javaSE:…
5.1 1 public class Demo { public static void main(String[] args) { // 创建一个输入对象 java.util.Scanner input = new java.util.Scanner(System.in); System.out.print("Enter an integer,the input ends if it is 0: "); //输入一串整数以空格隔开,如果输入0,程序结束 int num = input…
1原始数据类型(primitive data type) == 基本类型 (fundamental type)byte short int long float double char boolean引用类型 reference type2System.in System.outjava.util.ScannerScanner input = new Scanner (System.in);nextByte()nextShort()nextInt()nextLong()nextFloat()ne…
7.1 int[][] triArray{ {1}, {1,2}, {1,2,3}, }; 7.2 array[2].length 8.1 Unified Modeling Language:UML UML class diagram Circle _____________ radius:double _____________ +Circle() +Circle(newRadius:double) getArea():double circle1:Circle _________ radiu…
第六章 一维数组 1 数组初始化语法 array initializer 2 for each loop 3 off-by-one error 通常是在循环中该使用<的地方使用了<= 4 复制数组:1.for 2.System.arraycopy 3.clone 5 arraycopy(sourceArray, src_pos, targetArray, tar_pos, length); 6 匿名数组: anonymous array 7 值传递 pass by value 8 变长参数 h…
1. method header: modifier, return value type, method signature(method name, parameter) method body 2. value-returning method void method method overloading ambiguous invocation: max(int,double) max(double,int) 3. formal parameter actual parameter pa…
1 think before coding code incrementally 2 sentinel value sentinel-controlled loop 3 输入输出重定向 > < input redirection output redirection 4 pretest loop posttest loop 5 从小到大添加浮点数比从大到小精确 6 Integer.toBinaryString(int) Integer.toHexString(int) 7 PIE =4* (1…
1 单向if语句 双向if语句 dangling else switch:char,byte,short,int 2 javax.swing.JOptionPane.showConfirmDialog(null,text); 返回值: JOptionPane.YES_OPTION:0 JOptionPane.NO_OPTION:1 JOptionPane.CANCEL_OPTION:2 3 cannot cast int from boolean cannot cast boolean from…
本篇笔记的配套视频:网易云课堂,微专业/web安全工程师. 一.WEB基础知识 1.1 Web简介 1.1.1 Web介绍 1)web的发展 web1.0:以内容为中心,网站提供内容信息,用户进行访问阅读,信息单向传输,典型的有门户网站和个人网站. web2.0:以人为中心,用户可添加内容,彼此沟通互动,典型的有微博和博客. web3.0:网站内的信息可以直接和其他网站相关信息进行交互,能通过第三方信息平台同时对多家网站的信息进行整合使用:用户在互联网上拥有自己的数据,并能在不同网站上使用:完全…