摘要: 什么是方法 package com.Hellscythe.Method; public class Demo01 { public static void main(String[] args) { int add = add(1, 2); System.out.println(add); met0 阅读全文
posted @ 2021-08-06 09:26 TheCasually 阅读(68) 评论(0) 推荐(0)
摘要: Scanner对象 基本语法:Scanner s = new Scanner () 使用next方式接收: package com.Hellscythe.Scanner; import java.util.Scanner; public class Demo01 { public static vo 阅读全文
posted @ 2021-07-26 14:34 TheCasually 阅读(34) 评论(0) 推荐(0)
摘要: 网页整顿改不了3.18之前的,续上 类型转换 public class Demo04 { public static void main(String[] args) { int i = 128; byte b = (byte)i; System.out.print(i); System.out.p 阅读全文
posted @ 2021-03-22 17:43 TheCasually 阅读(25) 评论(0) 推荐(0)
摘要: Java基础语法 标识 单行标注 // 多行标注 /* */ 多做标注 关键字 public class Demo02 { public static void main(String[] args) { String ab="c"; System.out.print(ab); } } 注意语法中符 阅读全文
posted @ 2021-03-14 13:47 TheCasually 阅读(53) 评论(0) 推荐(0)
摘要: HelloWorld (notepad++) Hello.java 写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); } } 3.cmd打开代码路径 4. 阅读全文
posted @ 2021-03-11 15:45 TheCasually 阅读(21) 评论(0) 推荐(0)