• Post Reply Bookmark Topic Watch Topic
  • New Topic

A Java Science Fair Project?  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to design a really cool science fair project that revolves around computer science. Here's my question:
Is it possible to create a java program (without gui, in dos) that would alow users to run my program (could be called "Mulingu.class" or something neat like that) and then Mulingu prompts the user to type in there java code in their own native language like spanish or korean (for asian laguages it would be romanization) then my program translates their code into english and sends it to the compiler?
How can I accomplish this and would anyone be interested in translating some basic java (like "class", "print", "system", "int", "boolean") into a language that they speak?
[ December 10, 2003: Message edited by: Mushu Wu ]
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't want to dissapoint you but... Your project is complete nonsense. It does not have any value. People who know Java don't have any problem writing it in english since Java language uses only maybe like 30 english words. Also it's always you must read other developers code. So you want us to learn chinese too? Or any other language?
Regarding implementation. People do not type in java code and run it immediately. We usually put all code into .java files before compiling and we are not typing it in command-line. If you want to do something like this you can just write string replacer, which will run through .java file and switch words. This is not going to be easy though, since you don't want to change string constants and alike.
Good luck with your quest.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!