当前位置:网站首页>Variable definition and use
Variable definition and use
2022-04-23 03:28:00 【Aiyou coffee】
Overview of variables :
Definition of variables : While the program is running , The amount of value that can change .
Variables are essentially a small area of memory .
Variable The definition of :
Variables are defined by variable names , data type , The variable value consists of three parts .
So the format is : data type Variable name = A variable's value :
for example int a = 3;
Use of variables :
Modify the format : Variable name = A variable's value
public class variable{
public static void main (String []args){
// Define a variable
int a = 1:
// Output
System.out.println(a);
// Modify variables
a =23;
// Once again, the output
System.out.println(a);
}
}
This is the process of defining and modifying variables .
matters needing attention :
1. The name cannot be repeated
2. You can't use variables without assignment
3.long When a type is defined, it should be followed by an uppercase L
4.float Type to prevent incompatibility , So add... After it F
版权声明
本文为[Aiyou coffee]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220619009371.html
边栏推荐
- Idea view history [file history and project history]
- Unity knowledge points (ugui)
- Problem B: small challenge
- Applet - more than two pieces of folding and expansion logic
- MySQL installation pit
- 2022 团体程序设计天梯赛 模拟赛 L2-3 浪漫侧影 (25 分)
- 2022 团体程序设计天梯赛 模拟赛 L2-1 盲盒包装流水线 (25 分)
- . net webapi access authorization mechanism and process design (header token + redis)
- Unity knowledge points (ugui 2)
- 2022 group programming ladder game simulation L2-4 Zhezhi game (25 points)
猜你喜欢

. net webapi access authorization mechanism and process design (header token + redis)

Knowledge of software testing~

2022 group programming ladder simulation l2-1 blind box packaging line (25 points)

AWS from entry to actual combat: creating accounts

Chapter 8 of C language programming (fifth edition of Tan Haoqiang) is good at using pointer exercises to analyze and answer

Is it difficult to choose binary version control tools? After reading this article, you will find the answer

Basic use of Charles
![Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]](/img/1a/a22b4a35d3c083438d0f766a5ecb08.png)
Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]

How to achieve centralized management, flexible and efficient CI / CD online seminar highlights sharing

Test questions and some space wars
随机推荐
[vs Code] solve the problem that the jupyter file displays exceptions in vs code
Is it difficult to choose binary version control tools? After reading this article, you will find the answer
JS implementation of new
js 中,为一个里面带有input 的label 绑定事件后在父元素绑定单机事件,事件执行两次,求解
Do you really understand hashcode and equals???
Docker拉取mysql并连接
Scenario Title: how does system a use the page of system B
Section 1 array and slicing in Chapter 6
通过 zxing 生成二维码
MySQL installation pit
Course design of Database Principle -- material distribution management system
Eight elder brothers chronicle [4]
Chapter 7 of C language programming (fifth edition of Tan Haoqiang) analysis and answer of modular programming exercises with functions
12. < tag linked list and common test site synthesis > - lt.234 palindrome linked list
JS takes out the same elements in two arrays
Translation of l1-7 matrix columns in 2022 group programming ladder Simulation Competition (20 points)
"Visual programming" test paper
JS recursive tree structure calculates the number of leaf nodes of each node and outputs it
Build websocket server in. Net5 webapi
7-3 poly width