FREE Homework Help
Ask your homework question and get help from others
Help friends with their homework problems
Ask YOUR question:

Need help with CsC homework to create java class!

0 votes

 

how do i do this:
 
1. Create a Java class called MyFirstJava. In your main method, create at
least one variable. Assign your variable the value of an expression using
at least one operator. Finally, print out a message. Include the value of
the variable in your message. (Do not write out the value of the variable
yourself ! Allow Java to read and display the value, as we discussed in
class.)
 
2. Save your Java class and go to the command line. Use javac to compile
the class and run it. Make sure the output is what you would expect.
 
3. Pipe the output of your class to a file called output.txt.
 
That’s it! Submit your .java file and output.txt. Include a file README
with your name and a brief explanation of what your class does.
asked 6 years ago in Computer Science by anonymous

Need the solution FAST? Than SHARE this question:   

Your answer

Email me at this address if my answer is selected or commented on:
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

0 Answers

Related questions