Hi All,
Is there a area in programming where using Generics will greatly improve the programming duration or efficiency of the program as compared to using non parameterized types ?
Examples...
Type: Posts; User: Kumarrrr
Hi All,
Is there a area in programming where using Generics will greatly improve the programming duration or efficiency of the program as compared to using non parameterized types ?
Examples...
For which type of programming application would it be better to use Generics?
After you mentioned it, I tried it on my mac.. with eclipse.. and it works fine.
The windowing is only acting funky on Win7. Any idea why ?
Hi all,
Apologies, I can't show any code, because I don't have any code, all I have is a thought that has been bugging me.
How do I check the value of properties of 'g' in an, say outer class ?
problem solved... thanks.
It gets invoked only once.. if it's a limitation, how can I work around it?
Hi,
I've made a button listen for actions.
button.addActionListener(this);
so, let's say the button is clicked twice, will actionPerformed() be invoked twice too ?
static class TreeNode
{
int item;
TreeNode left;
TreeNode right;
TreeNode(int str) { item = (int)str; }
}
Hi,
Hi,
With regards to the title above..
Objective is to store and print out a binary tree.
Does anyone know how to format and print out a TreeNode/Node?
For instance, got a TreeNode with the...
What are the key differences ?
Looking to design a program to store and print out a tree..
Just wondering which data structure to use.
public class ExitOnEnter {
public static void main(String[]args)
{
LinkedList ListA = new LinkedList();
int buffer;
BufferedReader br= new...
Hey, would it work with LinkedList type ? Cuz I was getting some exceptions earlier with this same method.
Hi,
I have the following code:
private static LinkedList InitListA()
{
LinkedList ListA = new LinkedList();
Hi,
How do I find the time efficiency of a algorithm that requires 1000 basic operations, regardless of the amount of data input.
Also, what is meant by 1000 basic operations ?
I'm not familiar with LinkedList
Can someone tell me how I can go about doing it ?
Assuming we have the following constraints,
two int linked list;
and a third one to merge them into;
...
It works fine when dealing with integers < 10;
But I get java.lang.ArrayIndexOutOfBoundsException when the integers get huge;
And now why didn't I think of that.. haha :)
Thanks bro.
Hi all,
I'm getting the mentioned exception while trying to merge two int arrays.
Here's the code..
public static int[] MergeArrays(int[] ArrayA, int[] ArrayB)