Search:

Type: Posts; User: Sputnik

Search: Search took 0.07 seconds.

  1. Replies
    5
    Views
    1,860

    Re: User creates objects. How to?

    Hey Kevin!

    What I mean is that an instance of a class is being created everytime that above piece of code is repeated. But the name of the instance created remains the same - especially if I want...
  2. Replies
    5
    Views
    1,860

    User creates objects. How to?

    Hey all!

    I have a question regarding how a user can generate a new object.

    For example, lets say that I have a GUI application in which the user will be able to put an order. That order has to...
  3. Re: Pick random objects from array/arraylist. Newbie.

    After wrapping my head around the problem I've come up with the solution for unique objects using random generator:


    class pickRand{
    public static Ticket [] get(ArrayList <Ticket> jipp){
    ...
  4. Re: Pick random objects from array/arraylist. Newbie.

    copeg

    Your answer was a little advanced for me, but I took the bits and working on it.. Thank you! Here's what I've come up with. Example of a lottery drawing:

    Code:
    import java.util.*;...
  5. Pick random objects from array/arraylist. Newbie.

    Hey all!

    The only thing left that bugs me in my into java class is this - picking random objects from arrays or arraylists or wherever. After that I'm sailing free and moving to more advanced...
  6. Replies
    2
    Views
    5,503

    Re: Minimum value of objects in ArrayList

    Darryl.Burke

    Thank you!
    It all makes sense now, it's all about that value of int variable - fix that and you're good to go! :)
  7. Replies
    2
    Views
    5,503

    Minimum value of objects in ArrayList

    Hey All!
    I am a newbie in Java but have come across a problem I can't really grasp.
    If you can, please enlighten me, as my head got stuck on this issue :)

    Alright: assume an ArrayList with...
Results 1 to 7 of 7