14,328,801 members

Java

 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
 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
 It is not clear what your node structure is, but at a guess your code needs modifying to something like: ```public boolean twoSymmetric(TreeNode left , TreeNode right){ if (left.val == right.val) { // if the values are equal if (left.left != null && right.right != null) { // if outer children exist if (twoSymmetric(left.left, right.right) { // check if they are equal if (left.right != null && right.left != null) { // repeat for the inner children return (twoSymmetric(left.right , right.left); } } } } return false; }```
 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
 Re: JAVA Swing GUI Invoice - problem with correct actionPerformed snoopy1118-Apr-18 23:17 snoopy11 18-Apr-18 23:17
 Re: JAVA Swing GUI Invoice - problem with correct actionPerformed Peter_in_278019-Apr-18 0:39 Peter_in_2780 19-Apr-18 0:39
 Last Visit: 16-Oct-19 17:58     Last Update: 16-Oct-19 17:58 Refresh « Prev1...12131415161718192021 Next »