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...
Type: Posts; User: Sputnik
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...
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...
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){
...
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.*;...
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...
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! :)
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...