markstachowski / java-guide

A guide of modern Java (Java 17)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-guide

A guide to modern Java (Java 17)

Content

  1. genesis.md
  2. basic_types.md
  3. methods.md
  4. jshell_vs_java.md
  5. numbers.md
  6. control_flow.md
  7. interface.md
  8. lambda.md
  9. list_and_map.md
  10. string_formatting.md
  11. encapsulation.md
  12. equals_hashCode_toString.md
  13. contract.md
  14. modifable_vs_mutalble.md
  15. null_and_optional.md
  16. inheritance.md
  17. exception.md
  18. enum.md
  19. internal_classes.md
  20. implementing_interface.md
  21. generics.md
  22. wrapper.md
  23. variance.md
  24. limitation_of_generics.md
  25. stream.md
  26. collector.md
  27. data_structure.md
  28. sort.md

Using Java Shell (jshell)

Each chapter comes with executable examples that you can run using jshell.

To get the examples, just clone this repository

  git clone http://github.com/forax/java-guide

Then run jshell (at least Java 14 version)

   jshell --enable-preview

Then you can copy paste the examples inside jshell and see by yourself.

To quit use '/exit', to enable verbose error messages '/set feedback verbose', otherwise to get the help type '/help'

Work in progress

This is a work in progress, don't hesitate to contribute, i'm waiting your pull request

Build markdown files from jshell files

Using java 14

  java --enable-preview build/build.java

About

A guide of modern Java (Java 17)

License:MIT License


Languages

Language:Java 100.0%