03 2022 档案

摘要: 阅读全文
posted @ 2022-03-27 22:58 花田007 阅读(7) 评论(0) 推荐(0) 编辑
摘要:java数据类型 什么字节 常见面试题 public static void main(String[] args) { //整数扩展: 进制 二进制0b开头 十进制 八进制0开头 十六进制0x int i1 = 10; int i2 = 010; int i3 = 0x2a;// 0-9 A-F 阅读全文
posted @ 2022-03-27 22:45 花田007 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-27 22:41 花田007 阅读(6) 评论(0) 推荐(0) 编辑
摘要://带标签的break和continue//打印101-150之间所有的质数(只能别1和自身整除的数叫做质数)public static void main(String[] args) { outer:for (int i = 101;i<150;i++){ for (int j = 2;j < 阅读全文
posted @ 2022-03-27 17:23 花田007 阅读(21) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { //case穿透现象 char grade = 'C'; switch (grade){ case 'A': System.out.println("优秀"); break; case 'B': System.out. 阅读全文
posted @ 2022-03-24 17:30 花田007 阅读(69) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Double score = scanner.nextDouble(); //if else判断时,一旦其中一个else if语句检测 阅读全文
posted @ 2022-03-24 17:21 花田007 阅读(29) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { //输入多个数字,求和和平均数 Scanner scanner = new Scanner(System.in); double sum = 0; int m = 0; //当输入的不是一个double类型就会结束循环 阅读全文
posted @ 2022-03-24 16:57 花田007 阅读(65) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { //从键盘接收数据 Scanner scanner = new Scanner(System.in); System.out.println("使用nextLine方式接收:"); //判断是否还有输入 if(scan 阅读全文
posted @ 2022-03-24 16:15 花田007 阅读(27) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { // x ? y :z //如果x==true,则结果为y,否则结果为z int score = 50; String type = score < 60 ? "不及格" : "及格"; System.out.prin 阅读全文
posted @ 2022-03-24 14:56 花田007 阅读(8) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { int a = 10; int b = 20; //字符串连接符 System.out.println(""+a+b);//1020 System.out.println(a+b+"");//30} 阅读全文
posted @ 2022-03-24 14:50 花田007 阅读(17) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { //短路运算 int c = 5; boolean d = (c<4)&&(c++<4);//与运算中,当这里的第一个已经是false,后面就不会再次执行了。故c并没有成为6 System.out.println(c) 阅读全文
posted @ 2022-03-24 14:37 花田007 阅读(74) 评论(0) 推荐(0) 编辑
摘要:编程语言杂谈 名称 备注 C语言 面向过程 C++ 是C的改进版,面向对象。 C# 不跨平台(听说当年比尔盖茨看到java时说这是他看到的最好的语言,所以微软就抄来了,但是微软毕竟是微软,并打算兼容linux等其他系统没有跨平台的特性,也就失去了与java的竞争力。) Java 又被成为c++--, 阅读全文
posted @ 2022-03-18 22:40 花田007 阅读(26) 评论(0) 推荐(0) 编辑
摘要:理论上C#和.Net 程序是跨平台的 C#作为一种编程语言,早在2003年就成为ISO的标准之一。但是有很多实际问题。 1、微软官方并没有提供除Windows(包括windows mobile)以外的其他系统,如Linux,苹果,Unix,等等的Framework。而不像Sun公司开发Windows 阅读全文
posted @ 2022-03-18 22:25 花田007 阅读(1460) 评论(0) 推荐(0) 编辑
摘要:一、打开cmd的方式 二、常用的dos命令 #盘符切换 例如 D:#查看当前目录下所有文件 dir#切换目录 cd (翻译 change directory)#cd .. 返回上一级(测试相当于cd ../;那么连续返回就是 cd ../../../)#清理屏幕 (翻译 clear scream)c 阅读全文
posted @ 2022-03-18 22:12 花田007 阅读(186) 评论(0) 推荐(0) 编辑
摘要:Markdown学习 标题 三级标题 四级标题 字体 hello,world; hello,world; hello,world; hello,world; 引用(摘抄别人文章时使用) 选择狂神说,走上人生巅峰。 分割线 图片 超链接 点击跳转到狂神说 列表 有序列表 A B C 无序列表 A B 阅读全文
posted @ 2022-03-18 17:14 花田007 阅读(17) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示