Forum: Java 6 Days Ago |
| Replies: 5 Views: 220 |
Forum: Java 31 Days Ago |
| Replies: 3 Views: 189 >>Hi there,
Hello there.
>>I am new in java and some basic help would be appreciated. e.g
Ok lets see...
>>1-What's the out put of;
>>double number = (1/3)*3;
>>System.out.println("(1/3)*3... |
Forum: Java Oct 16th, 2009 |
| Replies: 9 Views: 430 try posting your whole code |
Forum: Java Oct 16th, 2009 |
| Replies: 2 Views: 183 I think you want it to be this :
static float calcTaxes(float grossPay)
{
float netPay ;
if (grossPay <= 300)
netPay = (float) (grossPay - (grossPay * 0.15));
if (grossPay <= 450) |
Forum: Java Oct 4th, 2009 |
| Replies: 11 Views: 387 You could sort it and then check if the next element is the same and
work from there. |
Forum: Java Oct 3rd, 2009 |
| Replies: 11 Views: 387 It works for me :
import java.*;
class Main
{
static void Print(Object ob){
System.out.print(ob);
} |
Forum: Java Oct 3rd, 2009 |
| Replies: 11 Views: 387 |
Forum: Java Oct 3rd, 2009 |
| Replies: 11 Views: 387 Yes. In fact thats very common, using 1d array as a mimic of a 2d.
final int ROW = 5;
final int COL = 5
char[] Letters = new char[ ROW * COL];
for(int i = 0; i < ROW * COL; i++)
... |
Forum: Java Sep 16th, 2009 |
| Replies: 2 Views: 380 goggle Separating axis theorem. |