Hmm, there's only one part of that C++ program I can see you having troubles with:
cout is the way C++ programs print to the console. This is done using the << operator.
So, for example:
is equivalent in Java as:
System.out.print("hello world!");
endl is a simple way to print out a newline.
So:
int age = 5;
cout << "hello world! I am " << age << " years old." << endl;
would be the same as:
int age = 5;
System.out.println("hello world! I am " + age + " years old.");
cin is the way C++ programs read input from the console. This is done using the >> operator.
Also, you can completely ignore the first two lines of the program (they just include the iostream library and use the standard namespace, which are irrelevant in Java). Remember that in Java you must wrap everything in a class, as well as declare certain functions to be static. Lastly, Java programs declare main to return void while in C++ the main function generally returns an int.