playground repository for Java code
- Example code from the Codecademy Java intro course
-
Example code from the Codecademy Java intro course
-
Location:
codecademy/intro_course
javac dir/subdir/class.java
# Using the package notation
java dir.subdir.class
-
Example code from the Codecademy Java intermediate course
-
Location:
codecademy/intermediate_course
-
building and running works the same as for the
intro_course
code samples
-
Example code from the Codecademy Learn Spring: Fundamentals and Controllers course
-
Location:
codecademy/learn_spring
-
building and running works the same as for the
playgrounds/sql
code samples
-
Example code from the Codecademy Learn Spring: Building an App course
-
Location:
codecademy/build_spring_app
-
building and running works the same as for the
playgrounds/sql
code samples
-
Sample code for interacting with SQL database servers
-
Location:
playgrounds/sql
-
The sub-project uses
gradle
to drive its builds and pull in dependencies -
Below code sample can be used to build + run
#!/usr/bin/bash
set -xe
pushd ./playgrounds/sql
echo "Sourcing database credentials from env file..."
source ./app/.db_credentials
echo "Gradle build..."
gradle build
echo "Run code..."
gradle run
popd
-
Sample implementations based on suggestions from Baeldung
-
Location:
baeldung
-
building and running works the same as for the
intro_course
code samples