This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
how to parse the java file
Appending contents in each line using Random AccessFile
Wacky Japanese machines
How to get a value from process
clering the console