Search:

Type: Posts; User: Kumarrrr

Search: Search took 0.16 seconds.

  1. Replies
    4
    Views
    1,734

    Question(s) on Generics/Templates

    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...
  2. Thread: Generics.

    by Kumarrrr
    Replies
    1
    Views
    1,518

    Generics.

    For which type of programming application would it be better to use Generics?
  3. Thread: Runtime Error

    by Kumarrrr
    Replies
    5
    Views
    1,641

    Re: Runtime Error

    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 ?
  4. Replies
    1
    Views
    1,847

    paintComponent(Graphics g)

    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 ?
  5. Replies
    5
    Views
    1,763

    Re: actionPerformed

    problem solved... thanks.
  6. Replies
    5
    Views
    1,763

    Re: actionPerformed

    It gets invoked only once.. if it's a limitation, how can I work around it?
  7. Replies
    5
    Views
    1,763

    actionPerformed

    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 ?
  8. Replies
    1
    Views
    3,112

    Merging of Trees..

    static class TreeNode
    {
    int item;
    TreeNode left;
    TreeNode right;
    TreeNode(int str) { item = (int)str; }
    }


    Hi,
  9. Replies
    0
    Views
    2,185

    Printing A TreeNode/Node To Console..

    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...
  10. Replies
    1
    Views
    2,701

    TreeNode vs. Node

    What are the key differences ?

    Looking to design a program to store and print out a tree..
    Just wondering which data structure to use.
  11. Re: How To Make The Program Jump To The Next Function..

    public class ExitOnEnter {

    public static void main(String[]args)
    {
    LinkedList ListA = new LinkedList();
    int buffer;

    BufferedReader br= new...
  12. Re: How To Make The Program Jump To The Next Function..

    Hey, would it work with LinkedList type ? Cuz I was getting some exceptions earlier with this same method.
  13. How To Make The Program Jump To The Next Function..

    Hi,

    I have the following code:



    private static LinkedList InitListA()
    {

    LinkedList ListA = new LinkedList();
  14. Replies
    2
    Views
    2,511

    Big-O Question

    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 ?
  15. Replies
    1
    Views
    4,172

    Merging Arrays Vs. Linked List.

    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;
    ...
  16. Replies
    3
    Views
    1,995

    Re: IndexOutOfBound

    It works fine when dealing with integers < 10;
    But I get java.lang.ArrayIndexOutOfBoundsException when the integers get huge;
  17. Replies
    3
    Views
    1,995

    Re: IndexOutOfBound

    And now why didn't I think of that.. haha :)

    Thanks bro.
  18. Replies
    3
    Views
    1,995

    IndexOutOfBound

    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)
Results 1 to 18 of 18