This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Code conversion! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Code conversion!" Watch "Code conversion!" New topic

Code conversion!

Zafar Ali
Ranch Hand

Joined: May 11, 2002
Posts: 64
Hello Ranchers.
I have a problem to convert the following code in Java.
I am disturb spcially in getche() input function.
void main()
char ch='a';
while(ch !='\r')
printf("Enter a character :\n");
printf("\nThe code for %c is %d.\n", ch,ch);

Zafar <br />***Your behaviour should affect.***
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

moving this to Java In General(Beginning) seeing as though this is not certification related.
Please continue the discussion there.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Zafar, how would you describe this algorithm in pseudocode?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
jQuery in Action, 3rd edition
subject: Code conversion!
It's not a secret anymore!