0
Follow
0
View

Problems with Java local variables

gsdhdsz 注册会员
2023-02-27 23:31

first_day local variable assignment is controlled by if and for. if if for is entered, first_day is unassigned. The default value is 0

dats7792 注册会员
2023-02-27 23:31

You can initialize a default value of 0 when you define firstDay. Your code will only assign a value to firstDay if certain conditions are met, so you may not initialize it at all.

koxingchen 注册会员
2023-02-27 23:31
< div class = "md_content_show e397 data - v - 3967" = "" >

hope to adopt

zcc493841274 注册会员
2023-02-27 23:31

Local variables in java need to be initialized. Remember that first_day is a local variable, so you can give it a default value of 0 or something when you declare it.
As for the code style, it is recommended to look at the Alibaba java development specification, you this variable naming convention is indeed c, java is generally a hump

About the Author

Question Info

Publish Time
2023-02-27 23:31
Update Time
2023-02-27 23:31

Related Question

Java抽象类和接口

VSCODE创建JAVA项目找不到JAVA_HOME

injectJavaScript不能在生产中设置对象,但在开发工作中找到

Eclipse在运行有编译错误的java代码时不给出警告

jsp中使用javabean的过程中无法显示中文的问题,

是用户禁用javascript浏览器,然后如何运行反应应用程序

java npm bootstrap

java.sql.SQLSyntaxErrorException: Unknown column 'record_borrower' in 'where clause'

IDEA 找不到JavaScript插件

JAVA制表符的使用