摘要: package com.Leo.base;/** * @author Leo * @version 1.0 * @since 1.8 */public class Doc { String name; /** * @authour Leo * @param name * @return * @thr 阅读全文
posted @ 2021-06-07 13:27 Leoyuan 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-07 13:06 Leoyuan 阅读(16) 评论(0) 推荐(0) 编辑
摘要: package operator;//三元运算符public class Demo08 { public static void main(String[] args) { // x ? y : z //如果x==true,则结果为y,否则结果为z int score = 80; String ty 阅读全文
posted @ 2021-06-07 12:52 Leoyuan 阅读(46) 评论(0) 推荐(0) 编辑
摘要: package operator;//逻辑运算符public class Demo05 { public static void main(String[] args) { // 与(and) 或(or) 非(取反) boolean a = true; boolean b = false; Syst 阅读全文
posted @ 2021-06-07 12:14 Leoyuan 阅读(38) 评论(0) 推荐(0) 编辑
摘要: package operator;public class Demo04 { public static void main(String[] args) { //++ -- 自增,自减 一元运算符 int a = 3; int b = a++; //执行完这行代码后,先给b赋值,再自增 //a = 阅读全文
posted @ 2021-06-07 12:10 Leoyuan 阅读(48) 评论(0) 推荐(0) 编辑
摘要: package operator;public class Demo01 { public static void main(String[] args) { //二元运算符 //Ctrl + D :复制当前行到下一行 int a = 10; int b = 20; int c = 25; int 阅读全文
posted @ 2021-06-07 11:18 Leoyuan 阅读(26) 评论(0) 推荐(0) 编辑