Forum: Java Oct 8th, 2009 |
| Replies: 2 Views: 305 Yup... that's the way aaha aaha dani likes it... :) :D |
Forum: Java Oct 8th, 2009 |
| Replies: 5 Views: 397 u can use the Math.pow() method...
OR
Multiply with itself... like this...
double BMI = weight/(height/100);
BMI=BMI*BMI;
Hope you've got the point... |
Forum: Java Oct 4th, 2009 |
| Replies: 11 Views: 387 You see as far as I understand.... the requirement was to put the display in matrix form and you've used ROW and COLUMN as the elements for deciding the matrix display... for a prime sized array this... |
Forum: Java Oct 3rd, 2009 |
| Replies: 11 Views: 387 In this there is restriction that the array dimension can't be prime (Not a big deal...HUH??) :yawn:
for prime we can use following looping...
int j=0;
for(int i=0;i<arr.length;i++)
{
... |
Forum: Java Oct 1st, 2009 |
| Replies: 2 Views: 244 one 1D array (char type) should do the job... for storing the characters... their indexes will be used in comparing with the value entered by the user. if the character at the indexes (values)... |
Forum: Java Oct 1st, 2009 |
| Replies: 2 Views: 169 Can u put up the code here please. This would make easier to solve the problem. |
Forum: Java Sep 27th, 2009 |
| Replies: 5 Views: 366 try this one... i haven't made it general for any number of lines (left that part for u if u need to implement it)... just tried for the one you've showed up here.... Here it is... :)
class one... |