Try it buttons for compiling multiple files

In this example there are 3 Java files to compile and then you run them by with the command “java Main”.

If you have more than three files to compile you have to change line 2 to add more variables and then renumber line 3.

Create a file in guides - bg.sh with the following:

#!/bin/bash
$1 $2 $3 $4 
$5 $6

This is the Try it syntax for the guide:

{Try it | terminal}(sh .guides/bg.sh javac GenericList.java BinaryFormatException.java Main.java java Main)