当前位置:网站首页>第2章 变量、数据类型和运算符
第2章 变量、数据类型和运算符
2022-06-08 23:39:00 【LLM(-¥-)】

class Mp3 {
public static void main(String[] args) {
String brand="爱国者F928";
double weight=12.4;
String type="内置锂电池";
int price=499;
System.out.println("品牌(brand):"+brand);
System.out.println("重量(weight):"+weight);
System.out.println("电池类型(type):"+type);
System.out.println("价格(Price):"+price);
}
}

class DayData {
public static void main(String[] args) {
int day=46;
int zhouShu=(int)(46/7);
int shengYuTianShu=day%7;
System.out.println("周数:"+zhuShu+"剩余天数"+shengYuTianShu);
}
}

class Encryption {
public static void main(String[] args) {
int i=10;
int result=(int)((i*10+5)/2+3.14159);
System.out.println("加密结果:"+result);
}
}

class Apple {
public static void main(String[] args) {
int shu =20;
double fenE=shu*0.098+shu;
System.out.println("份额:"+fenE);
}
}
边栏推荐
- Reflections on the error reporting of CPAT and cpc2 software installation
- Multimodal video analysis is popular. What are the current status and challenges of real application scenarios?
- .podspec 依赖问题处理
- 数字IC设计——Makefile脚本(示例)
- [arxiv2018] you only look twice: rapid multi scale object detection in satellite image
- 请教股票开户网上是安全的吗?要怎么做呢?
- Stm32f103ve+bh1750 tutorial +oled (HAL Library)
- [laser principle and application-1]: what is a laser and its common applications
- Completely relying on basic arguments, the 26 year old doctoral student of Oxford University used his spare time to prove the prime number conjecture
- 13001. weight on the moon
猜你喜欢

说明书丨Abbexa 人 Calsequestrin 1蛋白说明书

小黑刷题:Z变换

Use of JMeter common logic controllers (if controllers)

Day07/08/09 深度优先搜索和广度优先搜索

说明书丨Abbexa 小鼠 FK506 结合蛋白 7 蛋白

JDBCTample方式访问数据库

【arXiv2018】You Only Look Twice: Rapid Multi-Scale Object Detection In Satellite Imagery【遥感/航空目标检测】

.podspec 依赖问题处理

Constructors and Destructor

Sequential action positioning | I3D (inflated 3D convnet) and unt (untrimmednets) feature models
随机推荐
Rockchip uboot passes parameters to the kernel
Timing action positioning | data set introduction and download (activitynet, thumos' 14)
用BWA进行序列比对
RockChip Uboot向Kernel传递参数
Application of electric slip ring in food packaging machine
.podspec 依赖问题处理
Is a modular machine learning system enough? Teacher and student bengio tell you the answer
LeetCode-1241. 每个帖子的评论数
时序动作定位 | I3D(Inflated 3D ConvNet) 与 UNT(UntrimmedNets) 特征模型
外包学生管理系统架构文档
投资金额降低40% 协鑫能科自研换电产品
请教股票开户网上是安全的吗?要怎么做呢?
Excel(0) : 相關文檔
Zcmu--1775: sequence of XX (C language)
Non-constant range: argument must be an integer literal
SwiftUI 网络请求以及数据加载
The State Administration of market supervision took the initiative to supervise the 618 e-commerce promotion Festival: what are the criticisms of the e-commerce promotion Festival
数字IC设计——Makefile脚本(示例)
工具变量与两阶段最小二乘stata
[stm32cubemx learning] SPI reading and writing w25q16