No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi coders, I create a BSTree but i don't know if it is right. I only want to create a bstree with Strings, nothing else. my code: import java.util.Scanner; class Node { private Node left; private String number; private Node right; public Node() { left = null; number = "0"; … |
|
Hi. I cannot explain my question very well. I have an array of objects. Can i perform a search in this? Check the following code as example: public class test1 { public static void main (String[] args){ test2[] array = new test2[2]; for(int i=0;i<2;i++){ array[i]=new test2(); } int a=1, b=2; … |
|
Hi! I have one small question. Is that possible? public class test1 { public static void main (String[] args){ test2 client = new test2(); test2[] call = new test2[1000]; int x =2; call[1].add1(x); } } public class test2 { void add1(int x) { x = x+1; } } Sorry for … |
|
Hi programmers! I'm new at c++ and i want help about a simple guessing number game. I want: [LIST] the player has 3 tries (the number is between 0 and 20)[/LIST] [LIST]if player doesnt guess the right number (in 3 tries), then the programm will close[/LIST] [LIST]if the player guess … |