how can i set a boolean to put in an if else statement with the following code
if((Math.abs(x)==1)&&(Math.abs(ex)==1)&&(Math.abs(exx)==2))//test for straight
System.out.print("Straight");
if((cardSuit==0)&&(cardSuit2==0)&&(cardSuit3==0))//test for flush
System.out.print(" Flush ");
i want to set a boolean straight and boolean flush to put in another if else statement like so
if(straight && flush)
System.out.println("Good Game");
P.S. how can i check off that a thread is solved
i appreciate the help