Question: Using JAVa Eclipse HEre is My Code public class Echo { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(Hello world!); }
Using JAVa Eclipse
HEre is My Code
public class Echo {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello world!");
}
1. Copy the code of your Hello World application into a separate file Echo.java
2. In the file rename the class HelloWorld to Echo
3. Modify the line System.out.println() so that it prints the first element of the args array (element with offset 0). Lecture 2 will help!
4. Start the Terminal (Command line). See next slides for help!
5. Change current directory to the directory where you saved Echo.java
6. Compile Echo.java to Echo.class using javac (part of your JDK) 7. Run Echo.class and specify your name as an argument that should get printed on the Terminal 8. Capture a screenshot of the resulting screen and submit for grading together with your Echo.java file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
