File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Do Me A Favor,Thanks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Do Me A Favor,Thanks" Watch "Do Me A Favor,Thanks" New topic
Author

Do Me A Favor,Thanks

maa naa
Greenhorn

Joined: Jun 17, 2003
Posts: 3
I am doing a project
, I need produce a product to "watch" the changing of variable of program in sound, this way may assist novice programmer to debug. They can not only use eyes to watch the variable on Screen, but also can hear the changing of variable. it is obviously to reduce the workload of programmer.
I have produced two java classes. One is the class can play MIDI notes, another is quite easy that watch the changing of variable, but need a sentence insert into the target java source file, after the changing of the variable. for instance, in a bubble sort program, if I intend to watch the variable n(from 0 to 10), I must insert manually a watching sentence where the line after the n changes line. But I need let a program automaticly parse the target java file, and automaticly insert the watching sentence into the right place.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, maa naa!
What's your question?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
maa naa
Greenhorn

Joined: Jun 17, 2003
Posts: 3
my question is that how to parse the java file,and insert the sentence into the right place??
GIve me a CLue...
Thank You!!!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
What have you tried so far? Have you any code yet? Are you having trouble figuring out how to start the program?
Feel free to post any relevant code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do Me A Favor,Thanks