当前位置:网站首页>Variables and data types
Variables and data types
2022-06-12 05:00:00 【なんでもないゃ】
Variable
Identifiers are generally composed of numbers 、 Letter 、 Underline 、$ Other components , The number can't start ;
Variable input : First step :new One Scanner object , for example Scanner sc=new Scanner(System.in); The second step : Read the string through this object and put it into the variable , for example String name=sc.next();
data type
Note on conversion between base numbers :
The way to convert negative decimal to binary : First convert the absolute value of decimal to binary , Then reverse by bit and add 1;
Negative numbers need complement : According to the not , add 1;
The way negative binary is converted to decimal : Subtract binary by one and negate by bits , Then convert to decimal , Add a minus sign at the end ;
A single byte represents an octet binary , Indicates that the integer range is -128~127;
Integer defaults to int type , The floating point type defaults to double type ;
float Type has only seven significant digits ,double A type can represent 15 Significant digits ; And the floating-point type has error in calculation ;
char The type corresponds to ASCII Code value :'0':48 'A':65 'a':97 Space :32 Line break :10;
边栏推荐
- Data processing and data set preparation
- BI 如何让SaaS产品具有 “安全感”和“敏锐感”(上)
- 4.3 模拟浏览器操作和页面等待(显示等待和隐式等待、句柄)
- Gao Xiang slam14 notes on three Lie groups and Lie algebra
- How to deploy dolphin scheduler Apache dolphin scheduler 1.2.0 in cdh5.16.2
- Bearpi IOT serial port transceiver 1- normal mode
- SQL injection upload one sentence Trojan horse (turn)
- 2022-02-28 WPF upper computer 126 understand mqtt
- Redis learning notes (continuously updating)
- Musk promotes the development of fascinating new products partners remind important questions
猜你喜欢

Image processing 13- calculation of integral diagram

Let me tell you the benefits of code refactoring

Big manufacturers compete to join rust, performance and safety are the key, and the 2021 rust developer survey report is announced

kali_ Change_ Domestic source
![[GIS tutorial] ArcGIS for sunshine analysis (with exercise data download)](/img/60/baebffb2024ddf5f2cb070f222b257.jpg)
[GIS tutorial] ArcGIS for sunshine analysis (with exercise data download)

2022 fusion welding and thermal cutting recurrent training question bank and simulation examination

2022 "college entrance examination memory" has been packaged, please check!

2022 examination questions and simulation examination for crane driver (limited to bridge crane)

2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units

asp. Net core theme Middleware
随机推荐
LabVIEW关于TDMS和Binary存储速度
February 19, 2022 [Nolan] Nolan resurrected? Change · Nolan [soul orchid] can be connected to XDD / silly girl
Kwai opens a milestone activity for fans to record every achievement moment for creators
2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units
Some optimization methods for UI Application of Qt5 on Hisilicon security platform
kali下安装pycharm并创建快捷访问
Image processing 13- calculation of integral diagram
Jwt Learning and use
Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days
MySQL5.7.21 Build For ARM
When the build When gradle does not load the dependencies, and you need to add a download path in libraries, the path in gradle is not a direct downloadable path
Parallélisation de l'entraînement accéléré TF. Données. Générateur de données
Accumulated temperature spatial distribution data, temperature distribution data, sunshine data, rainfall distribution, solar radiation data, surface runoff data, land use data, NPP data, NDVI data
Bearpi IOT lighting LED
Uview customer management JS
leetcode 205. Isomorphic Strings
asp. Net core theme Middleware
Day18 creation and restoration of sparse array
[backtracking] backtracking to solve subset problems
JWT learning and use