Search:

Type: Posts; User: ms_ceng

Search: Search took 0.13 seconds.

  1. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    ornek is an instance of a class, ornek is my object that i defined to use and
    that line one of its values have been set


    i think i found error point there is a part of code below i need to...
  2. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    356 gidilen=0;
    357 ornek.set_g(gidilen);


    these are snippet of my code yes it has zero value not null i need to set zero value for my zero step in algorithm. why does java suppose that it...
  3. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    sorry for huge exceptions :(
  4. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    yes it is working after i changed Arraylist to ArrayList and deleted my Arraylist class :)

    Now i finished my artificial intelligence lecture homework project but i m getting this exceptions.

    ...
  5. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    thanks for greet answer o:-):o
  6. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    :)>- it is ok so sorry problem is that i wrote Arraylist not ArrayList X_X
  7. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    Exception in thread "main" java.lang.NullPointerException
    at yuzswing.denem.Arraylist.add(Arraylist.java:10)
    at yuzswing.denem.ArrayListDeneme.main(ArrayListDeneme.java:10)


    when i click...
  8. Replies
    15
    Views
    2,429

    Re: Creating Arraylist of Arraylist

    first i tried to create type of string before use my object but i couldnt do it what is my problem in my code?

    my class is:


    import java.util.ArrayList;

    public class ArrayListDeneme {...
  9. Replies
    15
    Views
    2,429

    Creating Arraylist of Arraylist

    I have an algorithm problem and i have created a class for my objects

    hard problem is how can i create a matrix that has increasing size and every rows in matrix is also increasing

    for...
  10. Replies
    1
    Views
    1,216

    Actionlistener and actionperformed question

    i have created a matrix with button and i want to listen event of this matrix. i need to take coordinates of matrix (X Y) when a button clicked and i ll use this coordinate for my other operations in...
  11. Re: problem of creating matrix with JButton or Panel

    ovv it is ok! now i made it.

    PRoblem was solved :)
    it is needed to define every button in for loop like that

    for (int i = 0; i < 5; i++) {

    // butonlar[i]=new JButton[5];
    for...
  12. Re: problem of creating matrix with JButton or Panel

    thanks :) yes i wasnt aware of that
    thank you very much but still it doesnt run. My codes now like that:



    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.Toolkit;
    ...
  13. problem of creating matrix with JButton or Panel

    Hi java programmers!

    I got a run time problem with my code in below


    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.Toolkit;
    import javax.swing.JButton;
    import...
  14. Replies
    3
    Views
    2,191

    what the stupid problem in using netbeans

    Sometimes i write a code in netbeans and try to run but it doesnt. i delete one letter and write it again after that it is working

    For example piece line of code is like that

    ArrayList<String>...
  15. Re: How to use an ArrayList - java.util.ArrayList

    thanks alot
    it is working
Results 1 to 15 of 15