It looks like you're on the right track. Do you have a specific question?
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>my questiion would be
Ooh, let's see.
>can some one tell me what to do next
That's not a question, that's a request for hand holding. By specific question, I mean specific question. Not "I'm clueless, tell me what to do!".
>if yu have a conversion into C++ cod can i see it
That's not a question either, it's a request for us to do your research for you. As you may have guessed by now, that's not how it works.
>I'm trying to learn on my own and need a little demo to look at.
No, you need to learn enough about Java to understand the code you're trying to convert. Then you need to learn enough about C++ to understand how to write code that does the same thing as the code you're trying to convert. C++ and Java are similar enough, especially with this trivial program, that I'm not going to cut you any slack. Common sense will take even the greenest of beginners through most of the exercise.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401