alley has no post on his/her wall yet
OBJECTS AND CONSTRUCTORS ======================== String s1; // Step 1: declare a String variable. s1 = new String(); // Step 2: assign it a value: a new empty string. Stri...
We can store a list of ints as an array, but there are disadvantages to this representation. First, arrays have a fixed length that can’t be changed. If we want to add items to a list, but the ar...
In Lab 3, you modified several methods in the SList class so that a "tail" reference could keep track of the end of the list, thereby speeding up the insertEnd() method.
=============== Not all variables are references to objects. Some variables are primitive types, which store values like "3", "7.2", "h", and "false". They are: byte: A 8-bit integer in the ra...
A priority queue, like a dictionary, contains _entries_ that each consist of a key and an associated value. However, whereas a dictionary is used when we want to be able to look up arbitrary keys,...
Thus far, we’ve usually declared fields and methods using the "public" keyword. However, we can also declare a field or method "private". A private method or field is invisible and inaccessible to...
A _tree_ consists of a set of nodes and a set of edges that connect pairs of nodes. A tree has the property that there is exactly one path (no more, no less) between any two nodes of the tree. A...
Java stores stuff in two separate pools of memory: the stack and the heap. The _heap_ stores all objects, including all arrays, and all class variables (i.e. those declared "static"). The _stack_...
Every class has an equals() method. If you don’t define one explictly, then "r1.equals(r2)" returns the same boolean value as "r1 == r2", where r1 and r2 are references. However, many classes red...
A _module_ is a set of methods that work together as a whole to perform some task or set of related tasks. A module is _encapsulated_ if its implementation is completely hidden, and it can be acce...
VideosAlley hasn't uploaded any video yet
Blog postsAlley hasn't written any article yet
At a party with _n_ people, everyone shakes hands once with everybody else. Let _H(n)_be the total number of handshakes among the _n_ guests. Write a recurrence for _H(n)_.22/10/2015
First-Generation Cellular Networks used different Standards. Please name them30/07/2013
The Physical layer or also known as MAC layer have different features. Please state details30/07/2013
Government often privatizes some institutions to obtain better results. Please explain the concept of privatization with respect to business development.29/07/2013
In order to manage marketing of an organization domestically a strategy called Multi-Domestic Strategy is used. Please explain the main functions performed by this strategy.29/07/2013
Bluetooth is a commonly used network to transfer files. Please state page procedure in Bluetooth.29/07/2013
To buy a phone one needs to see its specs. Please tell what the CPU specs of iPhone are.29/07/2013
There are different upgrades paths are developed for GSM. Please name them29/07/2013
Soil fertility can be known by measuring Redox potential. Please explain the technique used for measuring the redox potential of the soil.29/07/2013
To run every protocol there is an algorithm running behind it. Please tell what algorithm is running behind DSDV protocol.29/07/2013