Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion _01_02b/Employee.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,45 @@ public class Employee {
public static void main(String[] args) {

// Create a variable called age of type int and assign it the value 29.
int age = 29;

// Print the age variable to the console.
System.out.println(age);

// Create a variable called isAManager of type boolean and assign it the value
// true.

boolean isAManager = true;

// Print the isAManager variable to the console.
System.out.println(isAManager);

// Create a variable called yearsOfService of type double and assign it the
// value 2.5.

double yearOfService = 2.5;
// Print the yearsOfService variable to the console.
System.out.println(yearOfService);

// Create a variable called baseSalary of type int and assign it the value 3000.
int baseSalary = 3000;

// Create a variable called overtimePayment of type int and assign it the value
// 40.
int overTimePayment = 40;

// Create a variable called totalPayment of type int and assign it to the value
// of baseSalary added to overtimePayment.

int totalPayment = baseSalary + overTimePayment;

// Print the totalPayment variable to the console.
System.out.println(totalPayment);

// Create three variables all of type double on a single line.
// They should be called firstBonus, secondBonus and thirdBonus and they should
// be assigned the values 10.00, 22.00 and 35.00.


// Print out the sum of the variables called firstBonus, secondBonus and
// thirdBonus.

Expand Down
18 changes: 18 additions & 0 deletions out/production/practice-it-java-3086189/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.236.0/containers/java/.devcontainer/base.Dockerfile

# [Choice] Java version (use -bullseye variants on local arm64/Apple Silicon): 11, 17, 11-bullseye, 17-bullseye, 11-buster, 17-buster
ARG VARIANT="17-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT}

# [Option] Install Maven
ARG INSTALL_MAVEN="false"
ARG MAVEN_VERSION=""
# [Option] Install Gradle
ARG INSTALL_GRADLE="false"
ARG GRADLE_VERSION=""
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Java",
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "17", //Can change to another of Java
"INSTALL_MAVEN": "false",
"INSTALL_GRADLE": "false",
"NODE_VERSION": "lts/*"
}
},

// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"java.home": "/docker-java-home"
},
"extensions": [
"vscjava.vscode-java-pack",
"GitHub.github-vscode-theme"
]
}
},
"remoteUser": "vscode",
"onCreateCommand": "echo PS1='\"$ \"' >> ~/.bashrc" //Set Terminal Prompt to $
}

// DevContainer Reference: https://code.visualstudio.com/docs/remote/devcontainerjson-reference
3 changes: 3 additions & 0 deletions out/production/practice-it-java-3086189/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Codeowners for these exercise files:
# * (asterisk) deotes "all files and folders"
# Example: * @producer @instructor
34 changes: 34 additions & 0 deletions out/production/practice-it-java-3086189/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
BEFORE POSTING YOUR ISSUE:
- These comments won't show up when you submit the issue.
- Please use the sections below to provide information about the issue.
- Be specific: Add as much detail as possible.
-->

## Issue Overview
<!-- A brief overview of the issue --->

## Describe your environment
<!-- Provide details about your environment: what editor, browser, and other software you are using and any other specifics to your setup -->

## Steps to Reproduce
<!-- Provide an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant. Include a live link if available. -->
1.
2.
3.
4.

## Expected Behavior
<!-- What behavior did you expect? -->

## Current Behavior
<!-- What happened instead of the expected behavior? Describe the difference. -->

## Possible Solution
<!-- Optional: Do you have a fix or a suggestion on how to fix the issue? -->

## Screenshots / Video
<!-- Optional: Add any screenshots or video of the issue if available. -->

## Related Issues
<!-- List related issues -->
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- This repository *does not* accept pull requests (PRs). All pull requests will be closed. See CONTRIBUTING.md for further details. -->
14 changes: 14 additions & 0 deletions out/production/practice-it-java-3086189/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Copy To Branches
on:
workflow_dispatch:
jobs:
copy-to-branches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Copy To Branches Action
uses: planetoftheweb/[email protected]
env:
key: main
4 changes: 4 additions & 0 deletions out/production/practice-it-java-3086189/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules
.tmp
npm-debug.log
8 changes: 8 additions & 0 deletions out/production/practice-it-java-3086189/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions out/production/practice-it-java-3086189/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions out/production/practice-it-java-3086189/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions out/production/practice-it-java-3086189/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions out/production/practice-it-java-3086189/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"editor.bracketPairColorization.enabled": true,
"editor.cursorBlinking": "solid",
"editor.fontFamily": "ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace",
"editor.fontLigatures": false,
"editor.fontSize": 22,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.lineNumbers": "on",
"editor.matchBrackets": "always",
"editor.minimap.enabled": false,
"editor.smoothScrolling": true,
"editor.tabSize": 2,
"editor.useTabStops": true,
"editor.wordWrap": "on",
"emmet.triggerExpansionOnTab": true,
"explorer.openEditors.visible": 0,
"files.autoSave": "afterDelay",
"screencastMode.onlyKeyboardShortcuts": true,
"terminal.integrated.fontSize": 18,
"workbench.activityBar.visible": true,
"workbench.colorTheme": "Visual Studio Dark",
"workbench.fontAliasing": "antialiased",
"workbench.statusBar.visible": true,
"java.server.launchMode": "Standard"
}
7 changes: 7 additions & 0 deletions out/production/practice-it-java-3086189/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Contribution Agreement
======================

This repository does not accept pull requests (PRs). All pull requests will be closed.

However, if any contributions (through pull requests, issues, feedback or otherwise) are provided, as a contributor, you represent that the code you submit is your original work or that of your employer (in which case you represent you have the right to bind your employer). By submitting code (or otherwise providing feedback), you (and, if applicable, your employer) are licensing the submitted code (and/or feedback) to LinkedIn and the open source community subject to the BSD 2-Clause license.
Loading