随笔分类 - java学习日记
摘要:Scanner package 流程控制.SC;import java.util.Scanner;public class Sc01 { public static void main(String[] args) { //从键盘接收数据 Scanner scanner = new Scan
阅读全文
摘要:基本运算符 public class 基本运算符 { public static void main(String[] args) { //二元运算符 int a = 10; int b = 20; int c = 30; int d = 40; System.out.println(a+b)
阅读全文
摘要:类型转换 public class 类的转换 { public static void main(String[] args) { /*类型转换 低 高 byte,short,char-int-long-float-double 高到低强制转换,低到高自动转换 */ //强制转换 int a
阅读全文
摘要:八大数据类型及拓展 整数型 byte: 占用 一个字节: 取值范围(-128~127) short: 占用2个字节: 取值范围(-32768~32767) int : 占用4个字节 long : 占用8个字节: 对long 型变量赋值要在其后边加 L或l : 浮点数 float: 占用4个字节: 对
阅读全文
摘要:Java简单编写 1创建.java后缀文件 2利用notepad编写 简单编码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); }} DOS运行 1在文件夹前
阅读全文
摘要:快捷键笔记 常见快捷键 ctrl+c 复制 ctrl+v 粘贴 ctrl+a 全选 ctrl+s 保存 ctrl+z 撤销 ctrl+x 剪切 win+del 彻底删除 alt+f4 关闭页面 win+e 打开我的电脑 dos命令 #盘符切换 盘名+:#查看当前盘所有文件 dir#切换盘 cd /d
阅读全文
摘要:Markdown语法学习 标题创建 (#+空格 一级标题),(##+空格 二级标题)以此类推。 字体 hello!world (粗体 前后双*号) hello!world (斜体 前后单*号) hello!world (粗斜体 前后三*号) hello!world (删除线 前后三~号) 引用 (>
阅读全文

浙公网安备 33010602011771号