Search Results

Showing results 1 to 18 of 18
Search took 0.00 seconds.
Search: Posts Made By: scias23 ; Forum: Java and child forums
Forum: Java Oct 12th, 2009
Replies: 0
Views: 249
Posted By scias23
WHAT i want to happen is, when i click the CALCULATOR menu item, my separate Calculator.java will run on the MenuShortCut JFrame.

AGAIN, i want the separate .java file to appear on THE SAME JFrame...
Forum: Java Sep 7th, 2009
Replies: 7
Views: 329
Posted By scias23
i'm writing a program that converts numbers to words.. from 0-9999. it's inefficient to convert the number to string for this purpose.
Forum: Java Sep 7th, 2009
Replies: 4
Views: 226
Posted By scias23
adamson university?
Forum: Java Sep 7th, 2009
Replies: 7
Views: 329
Posted By scias23
i can't think of a solution that uses the modulo operator
Forum: Java Sep 7th, 2009
Replies: 7
Views: 329
Posted By scias23
i want to extract

576

to

hundreds = 5
tens = 7
ones = 6
Forum: Java Sep 5th, 2009
Replies: 2
Views: 407
Posted By scias23
Forum: Java Sep 5th, 2009
Replies: 1
Views: 318
Posted By scias23
i have this code.


numberPlayers = 2;
players = new Player[numberPlayers];
setName();
setHand();

private static void setName() {
for(int...
Forum: Java Sep 4th, 2009
Replies: 2
Views: 407
Posted By scias23
i just can't figure out what's wrong with this.

1. suppose i enter 9-3-1991 as the birthdate, this should return 18. but it returns 17. //wrong
2. suppose i enter 2-9-1991 as the birthdate, this...
Forum: Java Aug 31st, 2009
Replies: 10
Views: 943
Posted By scias23
thanks for your help, hand comparison is working now.

now, i want to set how many rounds the player will play.

look at this..

private static void twoPlayer() {
int count;
...
Forum: Java Aug 31st, 2009
Replies: 10
Views: 943
Posted By scias23
but how can i compare each player's hand?

i call the Player = one.setHand() in the main method -- how can i compare two objects of setHand() in a function?
Forum: Java Aug 30th, 2009
Replies: 6
Views: 339
Posted By scias23
i can't get the comparison to work.


birthDate.set(yyyy, mm, dd);

age = currentDate.get(Calendar.YEAR) - birthDate.get(Calendar.YEAR);

if(currentDate.compareTo(new...
Forum: Java Aug 30th, 2009
Replies: 10
Views: 943
Posted By scias23
how can i compare two instances of a class?

i have, Player class, it has getHand() method.

suppose i create two instances of player

Player one = new Player();
Player two = new Player();
Forum: Java Aug 30th, 2009
Replies: 6
Views: 339
Posted By scias23
hmm what method in the gregoriancalendar class should i use to compare user input date with the current date?
Forum: Java Aug 29th, 2009
Replies: 6
Views: 339
Posted By scias23
i'll research about that. thanks.

but is it possible to do this without using that class?
Forum: Java Aug 29th, 2009
Replies: 6
Views: 339
Posted By scias23
i just dont know how to convert this.

i have three integers for month, date and year. year is a two digit input.

i want to convert these three into one variable type long.. but i dont know how...
Forum: Java Aug 27th, 2009
Replies: 7
Views: 405
Posted By scias23
EDIT: i mean "parsing number from a string?" sorry.



what should i do to parse a number from a string?

i tried this.

Double leap = Double.parseDouble(this.yyyy);
Forum: Java Aug 22nd, 2009
Replies: 10
Views: 943
Posted By scias23
Forum: Java Aug 21st, 2009
Replies: 10
Views: 943
Posted By scias23
i'm thinking how to do this since last week.

i can make a rps game in java, BUT not in OO way. just the simple ones.

what i want to do is a rps game - the OO way.

i planning this program to...
Showing results 1 to 18 of 18

 


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

©2003 - 2009 DaniWeb® LLC