08/25/2022 Conditional Expressions and Statements
Homework: Advertising Conditional
For an already initialized int
variable friendsCount
, if a user has more than 500 friends, print the message "Adopt a Dog Today!" and otherwise print "Buy Cat Food At 20% Off".
代码pass了但是有7个checkstyle error:以后要注意代码格式,记得加空格,multi-block statement前一个block的后括号要和下一个block的先行词(我自创的叫法)位于同一行。
改完后的代码,运行没有error了。