Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Data_and_operation/Number.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ public static void main(String[] args) {
System.out.println(6 / 2); // 3

System.out.println(Math.PI); // 3.141592653589793
System.out.println(Math.floor(Math.PI));

// floor = remove decimal point
// 3.141592653589793 -> 3.0 print
System.out.println(Math.floor(Math.PI));

// ceil = a decimal ascent
// 3.141592653589793 -> 4.0 print
System.out.println(Math.ceil(Math.PI));


Expand Down
6 changes: 3 additions & 3 deletions HelloWorld_IOT/HelloWorldRaspberryPi.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public static void main(String[] args) throws InterruptedException {

while (true) {
// H
pin.high();
Thread.sleep(SHORT_INTERVAL);
pin.low();
pin.high(); // pin LED ON
Thread.sleep(SHORT_INTERVAL); // 0.2 Seconds Stop
pin.low(); // pin LED OFF
Thread.sleep(SHORT_INTERVAL);
pin.high();
Thread.sleep(SHORT_INTERVAL);
Expand Down