Search Results

Showing results 1 to 9 of 9
Search took 0.01 seconds.
Search: Posts Made By: firstPerson ; Forum: Java and child forums
Forum: Java 6 Days Ago
Replies: 5
Views: 220
Posted By firstPerson
Use the ? : operator.
Forum: Java 31 Days Ago
Replies: 3
Views: 189
Posted By firstPerson
>>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
Posted By firstPerson
try posting your whole code
Forum: Java Oct 16th, 2009
Replies: 2
Views: 183
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
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
Posted By firstPerson
Why is that again?
Forum: Java Oct 3rd, 2009
Replies: 11
Views: 387
Posted By firstPerson
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
Posted By firstPerson
goggle Separating axis theorem.
Showing results 1 to 9 of 9

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC