上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
  2021年4月2日
摘要: 作用: 方法减少重复代码,能重复调用,分工合作 格式: 修饰符 返回值 方法名 (参数) {方法体} 例子: public void printt(){System.out.print("吃饭了吗"} 阅读全文
posted @ 2021-04-02 09:55 zfj822 阅读(32) 评论(0) 推荐(0) 编辑
  2021年3月31日
摘要: break跳出循环 public class tiaochu{ public static void main(String args[]){ for(int a=1;a<10;a++){System.out.print("tiaocchu");if(a==3){break;}} } } conti 阅读全文
posted @ 2021-03-31 16:55 zfj822 阅读(55) 评论(0) 推荐(0) 编辑
摘要: while 循环 while是最基本的循环,它的结构为: while( 布尔表达式 ) { //循环内容 } package xunhuan;public class wxh { public static void main(String args[]) { int a=1; while(a<10 阅读全文
posted @ 2021-03-31 14:02 zfj822 阅读(61) 评论(0) 推荐(0) 编辑
摘要: for循环结构: 1.for(初始化; 布尔表达式; 更新) { //代码语句 }: public class Test { public static void main(String args[]) { for(int x = 10; x < 20; x = x+1) { System.out. 阅读全文
posted @ 2021-03-31 11:12 zfj822 阅读(192) 评论(0) 推荐(0) 编辑
摘要: if语句 public class ifyj{ public static void main(Spring[] args){ int a = 5; int b=10; if(a>b){System.out.print("判断语句");} else if(a==b) {System.out.prin 阅读全文
posted @ 2021-03-31 09:01 zfj822 阅读(47) 评论(0) 推荐(0) 编辑
  2021年3月30日
摘要: 三元表达式,当问号前面的表达式为ture时,返回冒号前面的表达式,为flase返回冒号后面的返回式 public class sanyuan{ public static void main(String[] args){ int as=10; int bs=15; String ss =as>bs 阅读全文
posted @ 2021-03-30 16:28 zfj822 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 变量 java生成变量,需要先声明变量 package bianliang;public class demo { public static void main(String[] args) { //赋值变量 boolean bool1 = true; System.out.println(boo 阅读全文
posted @ 2021-03-30 15:24 zfj822 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 基础语法 HelloWorld.java //文件名必须跟类名一致 public class HelloWorld{ public static void main(String[] args){ System.out.println("hello world"); //println表示换行, S 阅读全文
posted @ 2021-03-30 15:15 zfj822 阅读(39) 评论(0) 推荐(0) 编辑
  2021年3月16日
摘要: 什么是TPTP协议? TFT P简单文件传输协议,是运行在UDP之上的应用层协议,默认端口为69.用于在客户机与服务器之间进行简单文件传输。它是FTP简化版本,比FTP速度快,开销小,但是不可靠 阅读全文
posted @ 2021-03-16 10:13 zfj822 阅读(29) 评论(0) 推荐(0) 编辑
  2021年3月15日
摘要: FTP主动模式和被动模式的区别 主动模式:FTP客户端告诉服务器自己的端口号,让服务器主动连接。对于客户端的防火墙来说,这是从外部到内部的连接,可能会被阻塞 被动方式:控制连接和数据连接都由客户端发起,这样就解决了从服务器到客户端的数据端口的连接被防火墙过滤的问题 阅读全文
posted @ 2021-03-15 09:34 zfj822 阅读(27) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页