This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
The issue I am having is where it says MidiEvent = null; I am not sure what is going on but it keeps failing the argument if statement. I also dont see where it is prompting for the user cmd line input. Here is the code:
It doesn't prompt for input, it gets the arguments from the command line.
it keeps failing the argument if statement.
I'm not sure what that means.
Mark Nibert
Ranch Hand
Joined: Jul 01, 2009
Posts: 42
posted
0
When I run it just processes this line System.out.println("Don't forget the instrument and note args");
I am not sure how to get the information in to the program from the command line. I am still pretty new to this and I cant figure it out.
Nitish Bangera
Ranch Hand
Joined: Jul 15, 2009
Posts: 536
posted
0
I hope you are using the cmd for this.
Now while you give java MiniMiniMusicCmdLine 1 2. any integer should be specified as it takes the input from the command line.
If you want to take the input in the program it self then i guess you can use scanner and console.
[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api
Mark Nibert
Ranch Hand
Joined: Jul 01, 2009
Posts: 42
posted
0
Is that where I am screwing up? I am using eclipse for coding it. I will read through the tutorial and run it from the command line tonight. I swear sometimes my brain doesnt function properly.
Nitish Bangera
Ranch Hand
Joined: Jul 15, 2009
Posts: 536
posted
0
Well i for starters i don't prefer using an IDE. You better use notepad or Textpad(can compile and execute from inside also) and compile and execute using the command line only. Also if you are using eclipse, find out where can you pass in the parameters. Every IDE has that option where you can specify the command line parameters which needs to be passed.
Mark Nibert
Ranch Hand
Joined: Jul 01, 2009
Posts: 42
posted
0
Are there any good websites w/ labs that I can work through to help enforce the theories and ideas. I have taken programming classes and I am working on an idea for a program to write that I can use as a demo and to hopefully learn some of the more advanced ideas. I wish I would have kept the ones from college.
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32675
4
posted
0
Nitish Bangera wrote:Well i for starters i don't prefer using an IDE. You better use notepad or Textpad . . .
Agree. But NotePad is pretty bad for programming. Download NotePad2 or NotePad++ which despite the names are quite different from NotePad.