by Sudi » Thu Feb 23, 2012 10:36 pm
Don't know where to click on that page to download....anyways
Well as learning the language...just keep coding. If you can programm any other language is nothing special really. And C++ is really not that far away from Java.
Concept wise its pretty much the same. But interfaces in java are somewhat special. You can do some crazy stuff with them which would take way more time in c++.
- cpp Code: Select all
interface myinterface {
public void dostuff();
}
public class Test {
public int i;
public static void main(String[] args) {
Test t = new Test();
t.run();
}
void run() {
i = 5;
func(new myinterface() {
@Override
public void dostuff() {
System.out.println("DATA: "+Test.this.i);
}
});
}
public void func(myinterface i) {
i.dostuff();
}
}
But you probably knew that already. And Generics are basicly templates as you know them from c++.
Edit: Oh and threading is a breeze in java
Besides you should take a look at all the java standard libs
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.