subject

Identify grammar/logic errors in the following codes and correct them.
the following is someone’s definition (with quite some errors) for the checking class.
public class checking {
//only one attribute (for simplicity, nothing wrong here)
private double balance;
public void checking(double inibalance){
setbalance(inibalance);
}
// define getter and setter
public string getbalance(){
return balance;
}
public void setbalance(double newbalance){
double balance = 0;
if(newbalance> 0){ //validity check
balance = newbalance;
}
else{
system. out. println("your input is invalid! ");
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
You know the right answer?
Identify grammar/logic errors in the following codes and correct them.
the following is someon...
Questions
question
Mathematics, 20.01.2021 21:10
question
Mathematics, 20.01.2021 21:10
question
Business, 20.01.2021 21:10
question
English, 20.01.2021 21:10
Questions on the website: 13722363