Write a method called cube that accepts one integer parameter and returns that value raised to the third power.

What will be an ideal response?


```
public int cube (int num)
{
return Math.pow(num, 3);
}

```

Computer Science & Information Technology

You might also like to view...

Specify event listeners and their handlers on the ____ screen.

A. addEvents B. addEventListeners C. initializeEvents D. initializeEventListeners

Computer Science & Information Technology

List the four competencies identified in the EBK that are associated with the design of a strategic management function.

What will be an ideal response?

Computer Science & Information Technology

How many network bits are in each of the following classes?

a. Class A b. Class B a. 8 bits b. 16 bits

Computer Science & Information Technology

Within NIST guidelines for mobile forensics methods, the ______________ method requires physically removing flash memory chips and gathering information at the binary level.?

A. ?Chip-off B. ?Logical extraction C. ?Micro read D. ?Manual extraction

Computer Science & Information Technology