Skip to content
Welcome

Welcome

All hints and notes here may not be applicable to Your case.
If you want to use my notes – do it wisely.
All hints and notes here may not be applicable to Your case.
If you want to use my notes – do it wisely.
All hints and notes here may not be applicable to Your case.
If you want to use my notes – do it wisely.
All hints and notes here may not be applicable to Your case.
If you want to use my notes – do it wisely.
All hints and notes here may not be applicable to Your case.
If you want to use my notes – do it wisely.

Q&A section examples

How can you save your work when using The Go Playground?
Answer: (empty)

How to prepare to work?
Answer: You can’t

How to make live better?
Answer: You can’t too :-)

Highlight example with lines

It is not using generic 3 backtick notation
Instead shortcode is used (not look like shortcode 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);
    }
}
interface OrderRepository extends CrudRepository<Order,Long> {
  List<Order> findByCategory(String category); // <1>
  Order findById(long id); // <2>
}
  1. additional data
  2. different
package main

import "fmt"

func main() {
    fmt.Println("Hello, world!")
}
Last updated on