【Intro to Java Programing】 Lesson 1 : Introduction - 3 ( Creating a Test Project ; Hello World, Two Lines )
This Notes is according to the udacity free course :
Intro to Java Programing
Lesson 1 : Introduction - 3 ( Creating a Test Project ; Hello World, Two Lines )
How to make a new project in the BLUE J
Go to the menu bar >>Project>>New Project>> Decide File Name and Place to store>> the new project is setting up
If you want to write down your code, follow the next step
Click the gray button on the left 〖New Class...〗also create the class file a name.
Click right on your mouse
and change the inside code from left to right
======================
Two Lines Mission
Try to Write down "Hello World!" in two separate lines.
The Quiz :
Answer ( If you try to key in WORD, don't forget the quotes)
Intro to Java Programing
Lesson 1 : Introduction - 3 ( Creating a Test Project ; Hello World, Two Lines )
How to make a new project in the BLUE J
Go to the menu bar >>Project>>New Project>> Decide File Name and Place to store>> the new project is setting up
If you want to write down your code, follow the next step
Click the gray button on the left 〖New Class...〗also create the class file a name.
Click right on your mouse
and change the inside code from left to right
======================
Two Lines Mission
Try to Write down "Hello World!" in two separate lines.
The Quiz :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Welcome to your first programming exercise! This is the Udacity IDE or | |
// "Integrated Development Environment," where you submit your code. | |
// If you have BlueJ installed, it is a good idea to use it for programming. Then | |
// you just paste the solution here. For this assignment, start out with this | |
// BlueJ project: lesson1/twoLineHello | |
// Look for lines that begin with two slashes! These are "comments" and | |
// we will use them to let you know what you should do on each programming | |
// exercise. Have fun! | |
public class HelloWorld | |
{ | |
public static void main(String args[]) | |
{ | |
// Write your code to print "Hello" and "World!" on separate lines below | |
// Hint: You can use System.out.println("your text here"); | |
// Hint2: You may need to write two lines of code. | |
// | |
// Type your code below this line here. | |
// Once you are happy with your code, you can hit the "test" button to | |
// try out your code. And once you have the correct results, you can use | |
// the submit button to formally submit your code. | |
} | |
} |
留言
張貼留言