« first day (3137 days earlier)      last day (1789 days later) » 

12:00 AM
SCCS, the source motel! Programs check in and never check out! -- Ken Thompson (source)
 
 
2 hours later…
2:03 AM
farts
 
 
6 hours later…
7:37 AM
Hi guys I have a question for the define variable (List)
what is the difference between : 1) List test1 = new ArrayList(); and 2) List test2; test2 = thisMethodReturnArrayList();
are they same?
and also the other one.
 
2nd one just returns an arraylist. method(){ return arraylist;}

its essentially the same.
@Energy
 
thanks @UmerAsif
how about this
because i declared List<String> records = new ArrayList<String>(); in my method. so by right every time i call this method the records need to be created right?
i don't understand why this records keep old data and didn't overwrite new data
I am very new to java.. please help me on this..:(
 
8:01 AM
1 message moved to friendly bin
Please use a paste site for long code snippets and stacktraces.
 
this content giving me same result .. why?
it supposed to be changed depends on item, but it keeps returning "1" only.
 
What is your plan with that method? Convert an array to a list?
 
@geisterfurz007 No... this method is reading txt file (depends on item ) and return that txt as Arraylist. my project is to read txt file based on input keyword. however it returns same result
i just want to understand list behavior. is this because the list has reference address?
 
A few things regarding your code:
It won't compile; item does not have a type.
If you work with Java 8 or higher and you have a Generic type and you assign it, you don't need the generic type anymore (ArrayList<>(); is perfectly fine).
The try doesn't have a catch.
Both branches in the switch statement are the same.
And regarding your problem: I still don't have any idea what's wrong, tbh.
It would help if you made an actual code snippet including main function and everything that is needed to figure out what's wrong.
Morning Zoe :)
 
@geisterfurz007 sorry for the confusion , i just copied over my porject code and delete some part for the security .
sure
 
Zoe
8:13 AM
@geisterfurz007 raw types are allowed, aren't they?
 
let me replicate this with full code thanks.
 
Zoe
@geisterfurz007 Morning o/
 
@Zoe Line 8; method argument.
That certainly is not allowed.
 
Zoe
Oh
yeah, that's not allowed
 
 
4 hours later…
12:00 PM
Of the first 23 American astronauts sent into outer space, 21 were firstborns and the other two were only-children. (source)
 
 
2 hours later…
2:14 PM
dreams of electric sheep
 
 
6 hours later…
8:02 PM
/shutdown
 
Shutting down. See you later.
OakBot Online.
 
8:36 PM
@JennaSloan Well, organics live life, the objective of life is to procreate and ensure offspring survive to propagate your genetics. Contribution to the gene pool is the objective of life, and that's all there is to it.
 
8:59 PM
I did some open heart surgery on Oak. His commands are now defined in a Spring application context file. Hopefully everything still works. xD
 

« first day (3137 days earlier)      last day (1789 days later) »