I have a two-part question, based on one question from ourbook, which basically
ID: 3608591 • Letter: I
Question
I have a two-part question, based on one question from ourbook, which basically want you to find any and all syntax errors inthe definitions of the following classes. Here is parttwo...remember, I need to have all the syntax errors in thedefinitions of the following classes!! public class BB { private int one; private int two; public boolean equal () { return(one = = two); } public print ( ) { System.out.println(one + " " + two); } public BB (int a, intb) { one= a; two= b: } } I have a two-part question, based on one question from ourbook, which basically want you to find any and all syntax errors inthe definitions of the following classes. Here is parttwo...remember, I need to have all the syntax errors in thedefinitions of the following classes!! public class BB { private int one; private int two; public boolean equal () { return(one = = two); } public print ( ) { System.out.println(one + " " + two); } public BB (int a, intb) { one= a; two= b: } }Explanation / Answer
please rate - thanks public class BB { private int one; private int two; public boolean equal ( ) { return (one == two); //no space between = = } public void print () //missing void { System.out.println (one + " " + two); } public void BB (int a, intb) //missingvoid { one = a; two =b; //had : instead of ; } }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.