Skip to content

Commit 4294186

Browse files
committed
Small improvement in HelloWorld section
1 parent 04d722c commit 4294186

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

_posts/2015-03-17-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class HelloWorld {
2828
}
2929
```
3030

31-
Sure, the number of lines can decrease considerable if I use variant:
31+
Sure, the number of lines can decrease considerable if you use variant:
3232

3333
```java
3434
public class HelloWorld {

_posts/2015-03-20-hello-world.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ public class HelloWorld {
2020
}
2121
```
2222

23+
Sure, the number of lines can decrease considerable if you use variant:
24+
25+
```java
26+
public class HelloWorld {
27+
28+
public static void main(String[] args) {
29+
Pippo.send("Hello World!");
30+
}
31+
32+
}
33+
```
34+
if you consider that in first variant they are too many lines of code.
35+
2336
You can run [HelloWorld]({{ site.demourl }}/pippo-demo-basic/src/main/java/ro/pippo/demo/basic/HelloWorld.java) from your IDE (or command line) as a normal (desktop) application.
2437
The `default port` for the embedded web server is __8338__ so open your internet browser and type `http://localhost:8338` to
2538
see the result.

0 commit comments

Comments
 (0)