I just have a (easy?) quick question. I'm trying to put this string into one line and not three and I was wondering how to do that. If anyone could help it would be appreciated.
String pokerGame = (new StringBuilder()).append(" Dealer: X X\n\n X\n\n Player: ").append(d1).append(" ").append(c1).toString();
pokerGame = (new StringBuilder()).append(pokerGame).append("\n\n------------------------------------\nWhat do you want to do?\n\n Play on? (Enter 1)\n Fold? (Enter 2)").toString();
String s3 = JOptionPane.showInputDialog(null, pokerGame, "Java Poker", JOptionPane.QUESTION_MESSAGE);
String pokerGame = (new StringBuilder()).append(" Dealer: X X\n\n X\n\n Player: ").append(d1).append(" ").append(c1).toString();
pokerGame = (new StringBuilder()).append(pokerGame).append("\n\n------------------------------------\nWhat do you want to do?\n\n Play on? (Enter 1)\n Fold? (Enter 2)").toString();
String s3 = JOptionPane.showInputDialog(null, pokerGame, "Java Poker", JOptionPane.QUESTION_MESSAGE);