随笔分类 -  Java学习

摘要:一 .三目运算符与自增自减 GitHub代码练习地址:https://github.com/Neo-ML/JavaPractice/blob/master/OperPrac02.java 条件运算符由两个符号组成"?"和":",要求有3个操作对象,所以也叫它三目运算符。 自增(++):将变量的值加1 阅读全文
posted @ 2019-03-04 22:24 chalee3 阅读(1379) 评论(0) 推荐(0)
摘要:1.算术运算符: GitHub代码练习地址:https://github.com/Neo-ML/JavaPractice/blob/master/OperPrac01.java + - * / % ++ -- 只能操作【一个】【变量】 ++ -- 即可放在变量之前。也可放在变量之后。 可放在变量之前 阅读全文
posted @ 2019-03-04 03:07 chalee3 阅读(125) 评论(0) 推荐(0)
摘要:GitHub代码练习地址:https://github.com/Neo-ML/JavaPractice/blob/master/Intpractice3.java 一 Java中的数据类型 Java中的数据类型主要分为两大类:基本数据类型和引用数据类型。基本数据类型共有8种,分别是:布尔型boole 阅读全文
posted @ 2019-02-23 01:53 chalee3 阅读(144) 评论(0) 推荐(0)
摘要:GitHub代码练习地址:https://github.com/Neo-ML/JavaPractice/blob/master/IntPractice1.java https://github.com/Neo-ML/JavaPractice/blob/master/IntPractice2.java 阅读全文
posted @ 2019-02-20 00:37 chalee3 阅读(358) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-01-14 04:14 chalee3 阅读(139) 评论(0) 推荐(0)
摘要:Java 可以int + 字符串(str)输出,python则只可以用逗号 , 连接,或者字符串 + 字符串或int + int否则python会报错如下图: 阅读全文
posted @ 2019-01-08 01:20 chalee3 阅读(163) 评论(0) 推荐(0)