Search:

Type: Posts; User: rayan2004

Search: Search took 0.09 seconds.

  1. Re: Adding Items to Jlist using JComboBox. Problem with avoiding duplicates.

    Thank you very much for your advice. Im new to Programming. So struggling even with small programs. I ll try according to your gudence and see.
  2. Re: Adding Items to Jlist using JComboBox. Problem with avoiding duplicates.

    When you click on the item on the Combo box, those items should add to JList. (If the item is already in JList, Message will pop up to to avoid Duplicate adding)
    Problem is Items on combobox not...
  3. Re: Adding Items to Jlist using JComboBox. Problem with avoiding duplicates.

    Code Excutes. But when i select items on combo box, it addes all items to Jlist without giving error message to avoid Duplicates.
    Sorry about confusion.
  4. Adding Items to Jlist using JComboBox. Problem with avoiding duplicates.

    Hi
    in the following program, Im trying to add some items to Jlist using JComboBox without any duplicates.
    I managed to add items with Duplicates, As well as I managed to find duplicates using this...
  5. Please help to understand whats the wrong with my guess. - Simple program

    Hi
    Please try to understand why this program produce 100 200 as output. I was expecting out put as 100 200 30 40




    class MyClass{

    int x=100;
    int y=200;
  6. Replies
    3
    Views
    1,760

    Re: How java programs store in Heap and Stack.

    Thank you for your reply. Currently im studding java in a Institute. I got some programs to resolve. But i have to explain in a way how java programs work with memory when running these programs.
  7. Replies
    3
    Views
    1,760

    How java programs store in Heap and Stack.

    Hi.
    I started java programming few weeks ago. Im trying to understand how java objects, variable and main program stored inside heap and stack.
    I marked with question marks for places where i want...
  8. Replies
    8
    Views
    1,961

    Re: Please help to Understand x=++x+ + +x+x++

    Wow. Thats really good explanation. I got it. Thank you for your help.
  9. Replies
    8
    Views
    1,961

    Re: Please help to Understand x=++x+ + +x+x++

    Then i get 33 which is the correct answer.

    But for my calculation i get 35 for this x = ++x + ++x + x++; But the correct answer is 33. Im trying to find where im adding extra 2.

    This is how i...
  10. Replies
    8
    Views
    1,961

    Re: Please help to Understand x=++x+ + +x+x++

    Did you mean this?

    int x=10;
    x=++x+ + +x+x++;
    System.out.println(x); // output was 33. But i counted as 35.
  11. Replies
    8
    Views
    1,961

    Please help to Understand x=++x+ + +x+x++

    Hi Please help to understand this out put of this

    int x=10;
    x=++x+ + +x+x++; // i counted the output as 35. But correct out put 33. Pls help to understand.

    This is how i counted.

    ++x...
  12. Replies
    4
    Views
    6,303

    Re: Difference ++j and J++

    Hi helloworld922

    Thank you for your quick response. Yes i managed to understand.

    int j = 0;
    while (j++ < 2) // j = 0 / j = 1/ j = 2 and condition false.
    System.out.print(j); // prints...
  13. Replies
    4
    Views
    6,303

    Difference ++j and J++

    This code produce output 1 2, when i use J++ and produce 1 when i use ++J
    Please help me to understand, im new to java. Still trying to understand how loops work.

    int j = 0;
    while (j++ < 2) ...
  14. Re: How to print the same 2D Array Vertically and Horizontally

    Hi Again, :)
    I took little break from this program. I Managed to get total horizontally. But still im having incorrect figures on my programs. Min value repeats. Also i want to get min max avg...
  15. Re: How to print the same 2D Array Vertically and Horizontally

    Im new to Java and programming. Im struggling with this program around 2 days. :(
    As i can understand, i need to flip x and y loops. I tried that with my program. But i couldnt get expected out put...
  16. Re: How to print the same 2D Array Vertically and Horizontally

    Hi, Thank you for your reply.

    I managed to write above program to find min max avg and grade horizontally. ----->
    Now i need to print min max avg grade vertically.

    student marks...
  17. How to print the same 2D Array Vertically and Horizontally

    Hi I have 2D array program prints students marks and next total, grade, max and min.
    I Managed to prints total Max..etc Horizontally. (A)

    A) Student markes Total Max Min Avg Grade
    ...
  18. Replies
    3
    Views
    1,639

    Re: Problem finding MIN value of 2D arry.

    I already tried declaring before that line. but still i didnt get correct result. :( :(
  19. Replies
    3
    Views
    1,639

    Problem finding MIN value of 2D arry.

    Hi Guys

    I'm trying to find max and min values of 2D array. I managed to get the right out put for MAX, But MIN value does not come correct.
    Please help me. my code is below -

    Regards
    Rayan
Results 1 to 19 of 20