Welcome
|
TIP |
|
IMPORTANT |
|
NOTE |
|
CAUTION |
|
WARNING |
Q&A section examples
-
How can you save your work when using The Go Playground?
-
How to prepare to work?
You can’t
-
How to make live better?
You can’t too :-)
Highlight example with lines
It is not using generic 3 backtick notation
Instead shortcode is used (not look like shotcode but it is :-))
import java.util.Random;
class GenerateRandom {
public static void main( String args[] ) {
// Instance of random class
Random rand = new Random();
// Setting the upper bound to generate the
// random numbers in specific range
int upperbound = 25;
// Generating random values from 0 - 24
// using nextInt()
int int_random = rand.nextInt(upperbound);
// Generating random using nextDouble
// in 0.0 and 1.0 range
double double_random = rand.nextDouble();
// Generating random using nextDouble
// in 0.0 and 1.0 range
float float_random = rand.nextFloat();
// General comment
// Printing the generated random numbers
System.out.println("Random integer value from 0 to" + (upperbound-1) + " : " + int_random);
System.out.println("Random float value between 0.0 and 1.0 : " + float_random);
System.out.println("Random double value between 0.0 and 1.0 : " + double_random);
}
}
1
2
3
4
interface OrderRepository extends CrudRepository<Order,Long> {
List<Order> findByCategory(String category); (1)
Order findById(long id); (2)
}
| 1 | additional data |
| 2 | different |
1
2
3
4
5
6
7
8
9
10
11
12
13
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
fmt.Println("Another line.")
fmt.Println("Yet another line.")
fmt.Println("Line 15.")
fmt.Println("Line 16.")
fmt.Println("Line 17.")
fmt.Println("The end.")
}
class="hll" === Simple graphwiz
Simple java code block
dad
dasdsadd
dasddfsvva
das
Simple mermaid code block
VegaLite chart example