07 2017 档案
摘要:一、数组的遍历 int[] arr=new int[10]; //正序遍历 for(int i=0;i<arr.length;i++){ System.out.println(arr[i]); } //倒序遍历 for(int i=arr.length-1;i>=0;i--){ System.out
阅读全文
摘要:一、java环境变量的配置 JAVA_HOME:即jdk的安装路径,例如:D:/program files/java CLASSPATH:变量值为.(英文状态下的句号.小数点) path:将光标放置在path变量值得某一个位置,按一个End键,将光标移动到最末尾,添加一个;(英文状态下的),然后将b
阅读全文
摘要:tcp与udp基本区别 1、基于连接和无连接 2、tcp要求系统资源较多,udp较少 3、udp程序结构较简单 4、流模式(tcp)与数据报模式(udp) 5、tcp保证数据正确性,udp可能丢包 6、tcp保证数据顺序,udp不保证 udp应用场景 1、面向数据报方式 2、网络数据大多为短消息 3
阅读全文
摘要:1、创建数据库 create database 数据库名 2、删除数据库 drop database 数据库名 3、创建表 1>、create table 表名 (col1 type1 [not null] [primary key],col2 type2 [not null]....) 2>、cr
阅读全文