Skip to content

mvpjava/jdk12-Switch-Tutorial

Repository files navigation

# JDK 12 Switch Statements - Preview Feature


This tutorial supports Blog post "JDK 12 Switch Statements - Preview Feature"
from mvpjava.com

YouTube Tutorial:  https://un5hgz1xtk5y2.julianrbryant.com/XT38ZXdiPNw
Blog Post: https://umn6cjg22k7vjedu3w.julianrbryant.com/jdk-12-switch

 
This has all been setup for you to run within an official Docker container with access to all the JShell *.jsh script files for you to play around with. 

The environment is totally reproducible by simply executing "run.sh"
after git cloning this repository.


=========================================
Running a .jsh script example from JShell
=========================================

jshell> /open /root/jdkSwitchDemo.jsh


========================================================
When you want to list the code snippets in jshell script
========================================================
jshell> /list


====================================
Executing individual JShell snippets
====================================
jshell>  /list 1


========================================
Exiting JShell and thus Docker Conatiner
========================================
jshell> /exit

======================================================

Subscribe to MVP Java ...

https://un5gmtkzgkvecnwrqr1g.julianrbryant.com/c/MVPJava?sub_confirmation=1

Follow me ...

Website  : https://umn0mtkzgj4d0u20h3xb8k7q.julianrbryant.com

Facebook : https://un5gmtkzgj4n4nq4wkw2e8zq.julianrbryant.com/mvpjava

Twitter  : https://un5mgtgha9c0.julianrbryant.com/mvpjava

DockerHub: https://un5nj0b4gjyvpj20h7jj8.julianrbryant.com/?namespace=mvpjava

About

Tutorial covering JDK 12 Switch Statement/Expression as a Preview Feature

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages