« first day (923 days earlier)      last day (4025 days later) » 

4:22 AM
hey guys
when I say "The java compiler calls a method based on the Reference type and not the object type"
am I wrong?
-1
A: super() constructor within a subclass that extends a subclass?

Mayank SharmaThis is simple Inheritance. First is a super class of Second and Second is a super class of Third. Basically when you create an object of class Third it will inherit all the (non-private) properties from parent classes that is both class First and Second. First -> Second -> Third The Super ke...

 
0
Q: Can Java Swing HTML parser parse any type of Markup Language contained in an HTML document or just HTML?

Romantic ElectronI have an HTML with some XML data in it,and I want it to be parsed.Will the Swing HTML parser be able to navigate within those XML tags?

 
 
4 hours later…
8:41 AM
Hi Anto.. you wanted to talk?
 
hi tho mos
u heared about mentor in swing
 
@RomanticElectron JSoup should do a job...
 
Hi Joan, what about 'Mentor'?
 
mentor-program
swing
java swing Example
@ThomasW
can u tell me about this
 
 
5 hours later…
2:07 PM
When overloading the run() method in a Thread, can it be declared 'synchronized'?
 
2:35 PM
@AbhinavChoudhury I was going to say no, but apparently, you can
But I'd recommend making a unit test project, and trying it yourself first.
The worst thing that can happen is that it doesn't compile.
Also, you don't overload run() in a Thread, you overload it in a Runnable, right?
 
@ShotgunNinja So
 
@Washu Howdy.
 
Bad
Terrible D:
 
@Shotgu
 
I need to kill my feelings
Any good idea?
 
2:45 PM
@ShotgunNinja: Thanks. I believe @override is the word.
 
Never mind~
I always mix up overriding and overloading, for obvious reasons.
Wait, which one did you mean?
42 mins ago, by AbhinavChoudhury
When overloading the run() method in a Thread, can it be declared 'synchronized'?
1 message moved to Casual chat
You can't overload the run() method in a Thread without having access to the Thread class' source code, amirite?
You can, however, override the run() method in a subclass.
 
 
3 hours later…
5:59 PM
@ShotgunNinja Sure you can. Just create another run method in the child class that has a different set of parameters.
@ShotgunNinja @AbhinavChoudhury Declaring it synchronized wouldn't do anything because the run() method is only ever called once.
@ShotgunNinja To create a thread, you can either create an implementation of the Runnable interface, or create a class that extends Thread.
One advantage to creating a Runnable implementation is that your class can extend some other class. If your class extends Thread, then you can't have it extend anything else.
 
6:23 PM
@rightfold I want 56.09 from this 56.099998474121094 in java. I have tried like this
Variables.totalWithTax=(float) (Math.round(Variables.totalWithTax*100.0)/100.0); but didn't work
 
user142019
Sorry, I don't know Java.
 
any one else
@rightfold
 
you could do
 
solved :)
thanks
 
magic = 56.099998474121092
oh
damn
I was going to suggest multiplying it by 100, casting it as an int, then divinding it by one hundred
how did you do it?
 
6:28 PM
remove the float type cast
 
or you know. Learning a decent language :P
oh i missed what you wrote
yea that would do it
I only read the first sentence :P
@rightfold yea that would put anyone in the mood.
 
user142019
7:02 PM
18 messages moved from Java Sucks
 
9:57 PM
does any member here & can i ask question??
does any member here & can i ask question??
 
 
1 hour later…
11:02 PM
 
11:47 PM
0
A: How to get a socket object without a reference variable?

tgkprogAny solution that tells you to keep a reference to the socket/ connection/ stream is bad -> as that means your connections are going to be held up while the server does its work. You have a couple of options open 1. have the clients act as servers too. when they connect, they give the server the...

 

« first day (923 days earlier)      last day (4025 days later) »