01.代码如下:
package TIANPAN; /**
* 此处为文档注释
*
* @author 田攀 微信382477247
*/
public class TestDemo {
public static void main(String[] args) {
int numA = 100; // int型变量
double numB = 99.0; // int型变量
String str = "加法计算:" + (numA + numB); // String型变量
System.out.println(str);
}
}
02.效果如下:
知识有价,如果您认为这篇文章有价值,认同作者的付出,可以微信二维码打赏任意金额给作者(微信号:382477247)哦,谢谢。文章来源地址:https://www.yii666.com/article/758314.html
文章地址https://www.yii666.com/article/758314.html 网址:yii666.com