I've replaced the "i^j" with Math.pow(i,j).
In the run window I get all of the values in double as Math.pow returns the numbers as type double. How can I convert it to int? I do it by type casting...
Type: Posts; User: Reynalto
I've replaced the "i^j" with Math.pow(i,j).
In the run window I get all of the values in double as Math.pow returns the numbers as type double. How can I convert it to int? I do it by type casting...
I'm a beginner at java and one of my assignments is to make a table like a times table but instead of a times table it's a power table
example:
1 2 3 4 5
2 4 8 16 25
3...
import javax.swing.JOptionPane;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package IntegerOperationsAssignment;
/**
*