DRAG DROP -
You are writing a Java method that evaluates an arithmetic formula.
The method accepts an int value named number, raises the value to the second power, and returns the negative value of the result.
How should you complete the code? To answer, drag the appropriate code segment to the correct position. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:
Abhitera
4 years, 4 months ago