Explain the problem in the following java calls : drawLogo (paper , 50, ‘’10’’); drawLogo (50, 10, paper); drawLogo (paper, 10);

      

Explain the problem in the following java calls :
drawLogo (paper , 50, ‘’10’’);
drawLogo (50, 10, paper);
drawLogo (paper, 10);

  

Answers


Davis
-In the first call, the quotes should not be used .They indicate a string, not an integer.
-In the second call, the order should be : Paper, 50, 10
-In the third call, a parameter is missing.

Githiari answered the question on January 26, 2018 at 12:37


Next: We could rewrite the drawLogo method so that it has a single parameter: the drawing area.The rewritten method could use input dialogs to obtain...
Previous: The following is a java call of a method : justDoIt(‘’oranges’’); and the method itself: private void justDoIt (String fruit) { JOptionPane.showMessageDialog(null, fruit); } Explain what happens when the method is...

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions