-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCh1.Java
More file actions
60 lines (47 loc) · 1.24 KB
/
Ch1.Java
File metadata and controls
60 lines (47 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Learn Java the Easy Way
A Hands-On Introduction to Programming
Introduction
Why Should I Learn to Code?
Why Should I Learn Java?
What’s in This Book?
What Tools Do I Need?
Online Resources
Start Now!
1
Getting Started
Java on Windows, macOS , and Linux
Installing Java 8 and 9 for Developers
Installing the Eclipse IDE for Java Developers
Setting Up Eclipse
Installing the WindowBuilder Editor
Customizing Eclipse’s Look and Feel
Installing Android Studio for Mobile App Development
Getting to Know Java with JShell
Running JShell
// why are comments not working!?
/* test test test
*/
btw. starting from command line the java program is much shorter:
jshell> System.out.println("Hello, Java!")
instead doing this on exercism it was much longer:
public class Greeter {
public String getGreeting() {
return "Hello, World!";
}
public static void main(String[] args) {
Greeter greeter = new Greeter();
System.out.println(greeter.getGreeting());
}
}
Running JShell from the Command Line
Running JShell from a Shortcut
Working with Java Expressions in JShell
Declaring Java Variables in JShell
Numeric Variables
String Variables
Printing Output in Java
JShell Commands
What You Learned
2
Build a
Hi -Lo Guessing Game App!