« first day (1103 days earlier)      last day (3842 days later) » 

12:17 AM
hey guys
if Account was a class
synchronized(Account.this)
what would it mean
 
 
2 hours later…
2:23 AM
Pls who knows how I can show an applet in an appletviewer using code?
 
SB.
3:05 AM
good lord you can always tell when college starts
17
 
Does a Heap object allow for multiple values?
(In standard cases)
Playing off this: en.wikipedia.org/wiki/Heap_(data_structure) I'm going to assume they do.
 
 
9 hours later…
11:58 AM
@SB. ahahaha, yes :D
 
12:27 PM
Hi
I am trying to fetch the gmail contacts using java program even I succeeded but the program is not fetching all contacts of gmail is any one have an idea how to do this
 
Hi all
 
 
3 hours later…
3:36 PM
hello
 
4:00 PM
Does anybody have a slick way of reverse engineering a JSP template-based site? For example, given a specific URI path (/about-us), what are your strategies for finding the various templates that were used to compose that page?
 
4:22 PM
hey guys, i'm having problems printing a returned arraylist from a method, to main. Any help plz?
 
Put your code in a pastebin and I'll check it out
 
RandomList is unrecognised
 
First just a nitpick: You should follow Java conventions and name the variable randomList. Only class names are capitalized ;-)
 
oh ok
thanks
sorry if this is basic.
 
Ugg. Eclipse is lagging on me. I've got a server and another instance running.. hang on lol
 
4:29 PM
np
 
It's simply a matter of scope.
 
Call the method from print statement in main()
toString is not required
 
RandomList is not scoped to the main() method or to the class; it is scoped to the randomArrayList() method.
Did you mean to do: System.out.println(randomArrayList(10));
 
@Eggy: System.out.println((randomArrayList(10))) would do I guess
ya ,think so
 
oh
yeah that works
thanks guys!
 
4:34 PM
Sure; make sure you read up on variable scope!
 
yup. Again sorry if it's basic. I'm not the smartest
 
You don't need to be smart. Just learn how it works.
 
 
3 hours later…
7:07 PM
hi, who can explain this exercise: Write a method that takes two char parameters and prints the characters between those two
values, including the endpoints.??? help
 
Probably something like:
printCharsBetween('c','k');
> cdefghijk
 
I do not explain statement of this exercise
***understand not explain
 
Well look at my example... it prints the letters between c and k
You should write a method that does that.
printCharsBetween('D','M');
> DEFGHIJKLM
If I pass D and M, it prints the letters between D and M.
That's how I would interpret the exercise
 
7:58 PM
Heard this yesterday, wanted to share. Why do Java programmers where glasses? They don't C#. (drop mike)
 
I program in both, so screw you ;-)
 
It seems subtracting two very close, but large, longs results in a 0, but I can't find any documentation on why or on how to do an operation of numbers this big. Does anyone have a resource for that?
 
Have you tried BigInteger or BigDecimal?
17
Q: Large Numbers in Java

Petey BHow would i go about doing calculations with extremely large numbers in Java? i have tried long but that maxes out at 9223372036854775807, and when using an integer it does not save enough digits and therefore is not accurate enough for what i need. Is there anyway around this?

 
9:09 PM
hey guys, when finding a random number. is add(random.nextInt(255)) equivalent to random.nextInt((255 - 0) + 0) + 0) (a number between 0 and 255)
 
 
2 hours later…
11:03 PM
@Eggy LOL? 255 == 255 - 0 + 0 + 0
I don't think you need Java for that answer...
 

« first day (1103 days earlier)      last day (3842 days later) »