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, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 24.06.2019 10:20
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
You know the right answer?
Identify grammar/logic errors in the following codes and correct them.
the following is someon...
Questions
question
Computers and Technology, 09.07.2019 23:20
question
Computers and Technology, 09.07.2019 23:20
question
Computers and Technology, 09.07.2019 23:20