> Hello Everyone:
> I'm new to java.I'm now confused by the output of the following two
[quoted text clipped - 32 lines]
>
> What leads to the different output?
`c.get()` is returning integers, which your second example adds together
before printing. There are multiple `println`s, distinguished by the
compile-time type of their argument; the one with an integer argument
prints integers in the usual way. In your first example, the `+` is
adding strings to things by converting the things to strings (someone
please write the tune for this); `+` has a somewhat horrible overloading
to allow this.

Signature
"It was the first really clever thing the King had said that day."
/Alice in Wonderland/
Hewlett-Packard Limited Cain Road, Bracknell, registered no:
registered office: Berks RG12 1HN 690597 England