Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for RozenKristal

I got a java test done and somehow my answer for this question is incorrect, can you guys help me explain it? So the question is: in a binary tree with height 3 the least deep leaf has depth 2 (Root has depth 0). a)Max numbers of nodes this tree …

Member Avatar for RozenKristal
0
295
Member Avatar for RozenKristal

import java.util.*; public class List { public static INode head; public List() { head = new INode(8); } public static void main (String[] args) { INode a = new INode(8); int data = a.getValue(); System.out.println(data); System.out.println(head.getValue()); } } And my Node class: public class INode { private int value; private …

Member Avatar for jalpesh_007
0
223
Member Avatar for RozenKristal

import java.util.*; public class ArrayListTesting { public static void main(String []args) { LinkedList<String> list = new LinkedList<String>(); list.add("apple"); list.add("pear"); list.add("tree"); Iterator <String> iterate = list.iterator(); System.out.println(iterate.next()); System.out.println(iterate.previous()); System.out.println(iterate.next()); System.out.println(iterate.hasNext()); } } it keep telling me it an error.

Member Avatar for stultuske
0
258
Member Avatar for RozenKristal

THing is I have an assignment where the object is an array, I need to check when it is out of bound. But I dont understand what this statement means? Can you guys help me verify it? > method "private void rangeCheck(int index)": if the value of index is less …

Member Avatar for jamesmadison43
0
179
Member Avatar for laguardian

Hey guys, I'm trying to make this program that allows a person to set the size of an array to any value they choose. Then, the program will ask the user to input n values to be stored in the array at the corresponding index. Then the program modifies each …

Member Avatar for NormR1
0
1K
Member Avatar for RozenKristal

So I have a question about using methods. Alright, let say I want to create a system of atm and bank. I create a class account that has all related attributes such as acc # and balance and blah. Then I create an ATM class that contain methods such as …

Member Avatar for RozenKristal
0
154
Member Avatar for RozenKristal

So my assignment is make a dynamic array to read integers from a file, which the first integer is the size used to create a dynamic array. But I am lost at how to specifically take the first integer. main(int argc, char **argv) { float average; /* SET this variable …

Member Avatar for nitin1
0
135