Extremely Sorry. i will be carefull
Type: Posts; User: syedfahadjalali
Extremely Sorry. i will be carefull
try this
for(int i=1;i<7;i++){
for(int k=1;k<=i;k++)
System.out.print(k);
System.out.println() ///// for LINE Breaking Work With Outer Loop
PRIME Number is one which is divide only by it self and 1. now make your logic to find the Prime number . but the programme should be look like this
int input;
Scanner myscan = new...
Well Syed Bhai Thanks for your suggestions but Conceptually, a label is not intended to be interactive (except tooltips or mouseover effects).
Next I Am thinking of My users. What about those who...
well my programme near to end . i am using Jlabels with ImageIcon . but some time when i clicked on outside of jlabel/ImageIcon the mouse event generated un-wantedly on some other label. i heared...
thanks its working
yes it is Modal
yes this is the problem
ok let me post that code
--- Update ---
This is human play() method
public void play(){
synchronized(Deck.getPlayers()[0]){
try{
dear Norm the logic is some AI algorithm which is working fine. actually the problem is not in playingLogic. let consider the method of Play is something which returns a card and set the next player....
if i create a thread that handles the Play function and use wait() and notify() methods for thread handling should it be a good idea ?
Dear Programmers I am stuck in middle of Game. I have planned all the Game but while writing its code i am stucked.
Here is my first class which is working fine. it created 52 objects of Card
...
public static void startGame(){
Deck dock = new Deck();
for(int j=0;j<13;j++)
for(int i=0;i<4;i++)
deckArray[i] = Player[i].play(); //here deckArray will...
thanks i am sorry
I am stuck from last 1 month and i didnot find any solution. my problem is i am writing a game of four players. three are computers and one human.
so there are a play() funtion for computers and...
.....