subject

What error, if any, is in the following code?

public class Test {
private int num;
private void setNum(int n) {
num = n;
}
}

a. setNum should have no parameter.
b. setNum must be public.
c. setNum should return int, not void.
d. Code is correct as is.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
How do you make a lenny face? plz, brailiest to who can answer first.
Answers: 1
question
Computers and Technology, 24.06.2019 10:40
Joe needs to see the slide transitions and animations he has applied to his slides in a large view. which presentation view should he use? in which tab would joe find the animations option to make further changes, if any?
Answers: 1
question
Computers and Technology, 24.06.2019 13:10
Write a program that has a conversation with the user. the program must ask for both strings and numbers as input. the program must ask for at least 4 different inputs from the user. the program must reuse at least 3 inputs in what it displays on the screen. the program must perform some form of arithmetic operation on the numbers the user inputs. turn in your .py file as well as a screenshot of your program's output. include comments in your code to explain how it works an example program run might look like (have fun with this and be creative): ‘what is your name? ’ “josh” ‘, josh. what is your favorite color? ’ “green” ‘mine too. do you also like ice cream? ’ “no” ‘josh, how old are you? ’ “40” ‘ and how many siblings do you have? ’’ “3” ‘that means you are one of 4 kid(s). is green the favorite color of anyone else in your house? ’
Answers: 3
question
Computers and Technology, 25.06.2019 11:10
1. when you see a sign colored yellow, you should: o a. adjust your driving for the condition indicated b. figure out if you're nearing your destination o c. obey the prohibition indicated on the sign
Answers: 1
You know the right answer?
What error, if any, is in the following code?

public class Test {
private int nu...
Questions
question
Biology, 21.10.2020 20:01
question
Social Studies, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
question
Advanced Placement (AP), 21.10.2020 20:01
Questions on the website: 13722363