[OT] Is there any tutorial for those who learn Java after Python ;-)
scott
smarsh at hotmail.com
Tue Jun 26 20:30:47 EDT 2001
D-Man wrote:
>
> On Tue, Jun 26, 2001 at 09:23:20PM +0400, Roman Suzi wrote:
> |
> | I want to learn Java (Not that I am dissatisfied with Python,
> | but this seem to be "the must" to find a job ;-)
>
> I would recommend using Jython to start -- you can do useful stuff
> using your Python knowledge and use the Java libraries. It is really
> cool.
>
> | And some simple things makes me wonder:
> |
> | public class JavaRules {
> | public static void main(String args[]) {
> | System.out.println(2+2+"a");
>
> This line is a type error.
>
> | System.out.println("a"+2+2);
>
> Here is a little bit of Java's magic -- the java.lang.String being
> first, it's '+' operator converts the other objects to a string, then
> concatenates them.
>
You'd better stick to Python advice for the time being.
Output will be:
4a
a22
More information about the Python-list
mailing list