This is not the most elegant way, but gives the idea how i decided to solve it. I loop through arraylist until condition comes true, then remove object from arraylist with correct reference.
...
Type: Posts; User: E.K.Virtanen
This is not the most elegant way, but gives the idea how i decided to solve it. I loop through arraylist until condition comes true, then remove object from arraylist with correct reference.
...
Ok. I _thougth_ that toString method at class would do the work.
I stop guessing a go with iterating :) Thanks for help.
Hi.
I created a simple test list while studying ArrayList. For some reason (some obvious i guess) i cant remove objects from list.
There is tiny class Person with some values, which are added to...
Ok. It took few days (and championship of icehockey by my favorite hockey team) but i finally got it.
Sorry about mis-information. I added compiler errors as quote in first program.
I thought the program is so small, that i would not need to explain it's purpose with my poor english. But ill try if...
Hi all.
Im trying to learn how to make a own exceptions. I guess it's up to the structure im using etc. I have dropped from 11 errors down to 4. But now i would be pleased to get some help to get...
Thank you both with this. After pondering your replies and my code, i got it figured out.
Hi.
Still strugling with learning objects.
Basic idea is, that object Piste(x, y) checks if parameters are in proper range and returns a string in format "(xLoc, yLoc)".
.siirrä(x, y) adds...
Thank you Norm. Feeling bit stupid here, but i guess it's the price of learning new :)
Got it working.
This is a "homework" of self-paid course of Java basics.
Mission is to create a class Tulostaja, which ask's two integers and then calls method Summa() from a class Laskin. The code where i need...
Hi.
Im E.K.Virtanen and im from Finland. Im "self-learned" basic programmer, interested about programming since early 80's.
Now im learning Java in a course, arranged by un-named company....