-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTwoFragments.java
More file actions
34 lines (29 loc) · 866 Bytes
/
TwoFragments.java
File metadata and controls
34 lines (29 loc) · 866 Bytes
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
package org.example;
// #docfragment "Main"
public class TwoFragments {
// #enddocfragment "Main"
private TwoFragments() {}
// #docfragment "Main"
public static void main(String[] args) {
// #enddocfragment "Main"
System.out.println("This is just a log message.");
// #docfragment "Main"
System.out.println(helperMethod());
}
// #enddocfragment "Main"
// #docfragment "Hello"
public static void hello(String[] args) {
// #enddocfragment "Hello"
var unseenText = "Unseen Text";
System.out.println(unseenText);
// #docfragment "Hello"
var coolText = "Cool Text";
System.out.println(coolText);
}
// #enddocfragment "Hello"
private static String helperMethod() {
return "42";
}
// #docfragment "Main"
}
// #enddocfragment "Main"