14,333,705 members

# Java

 how to start learning java Member 1383037827-May-18 23:23 Member 13830378 27-May-18 23:23
 Re: how to start learning java Richard MacCutchan28-May-18 22:16 Richard MacCutchan 28-May-18 22:16
 Need help choosing test API Member 1384132023-May-18 8:37 Member 13841320 23-May-18 8:37
 Re: Error in Integer mode Richard MacCutchan10-May-18 1:16 Richard MacCutchan 10-May-18 1:16
 Re: Error in Integer mode Richard Deeming10-May-18 1:26 Richard Deeming 10-May-18 1:26
 Re: Error in Integer mode Richard MacCutchan10-May-18 1:27 Richard MacCutchan 10-May-18 1:27
 Halp please? Dice roll game. Gril13376-May-18 7:01 Gril1337 6-May-18 7:01
 Re: Halp please? Dice roll game. Richard MacCutchan6-May-18 21:52 Richard MacCutchan 6-May-18 21:52
 Your call to `nextInt` returns a number in the range [0..5] so you will end up with a number in the range [1..6], so you can never roll an 8 or a 9, as specified in your examples. To get the highest number you need to write a method which takes two numbers and returns the relevant value. The algorithm for this is fairly straightforward. Compare the two numbers to get the higher number (or either one if they are equal). Multiply the higher number by 10 and add the lower, which gives the "highest" value.
 Solving symmetric tree problem by recursive solution ElenaRez6-May-18 6:52 ElenaRez 6-May-18 6:52
 Re: Solving symmetric tree problem by recursive solution Richard MacCutchan6-May-18 21:44 Richard MacCutchan 6-May-18 21:44
 Deep copy of List<> without knowing specific list type jackbrownii30-Apr-18 10:55 jackbrownii 30-Apr-18 10:55
 Re: Deep copy of List<> without knowing specific list type Manish K. Agarwal27-May-18 21:32 Manish K. Agarwal 27-May-18 21:32
 Student needing assistance while loop Victor McNeal21-Apr-18 9:15 Victor McNeal 21-Apr-18 9:15
 Re: Student needing assistance while loop Richard MacCutchan21-Apr-18 20:56 Richard MacCutchan 21-Apr-18 20:56
 Message Closed 9-Sep-19 23:31 Member 14585837 9-Sep-19 23:31
 Java JUnit test error CHUCHU YAO20-Apr-18 13:23 CHUCHU YAO 20-Apr-18 13:23
 Re: Java JUnit test error Richard MacCutchan20-Apr-18 20:43 Richard MacCutchan 20-Apr-18 20:43
 Re: Java JUnit test error jschell21-Apr-18 6:31 jschell 21-Apr-18 6:31
 Re: Java JUnit test error Richard MacCutchan21-Apr-18 20:58 Richard MacCutchan 21-Apr-18 20:58
 JAVA Swing GUI Invoice - problem with correct actionPerformed Member 1378720218-Apr-18 20:59 Member 13787202 18-Apr-18 20:59
 Re: JAVA Swing GUI Invoice - problem with correct actionPerformed Richard MacCutchan18-Apr-18 21:51 Richard MacCutchan 18-Apr-18 21:51
 Re: JAVA Swing GUI Invoice - problem with correct actionPerformed Member 1378720219-Apr-18 0:54 Member 13787202 19-Apr-18 0:54
 Re: JAVA Swing GUI Invoice - problem with correct actionPerformed Richard MacCutchan19-Apr-18 1:02 Richard MacCutchan 19-Apr-18 1:02
 Last Visit: 21-Oct-19 13:34     Last Update: 21-Oct-19 13:34 Refresh « Prev1...12131415161718192021 Next »