Commit a93e9f62 authored by elijah vasquez's avatar elijah vasquez 🦍

messagetest

parents
{
"java.project.sourcePaths": ["src"],
"java.project.outputPath": "bin",
"java.project.referencedLibraries": [
"lib/**/*.jar"
]
}
## Getting Started
Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.
## Folder Structure
The workspace contains two folders by default, where:
- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the `bin` folder by default.
> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.
## Dependency Management
The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).
File added
File added
public class App {
/* Exercises for Week 2 Programming 2
14/02/2022 Valentine's Day
Elijah Vasquez */
public static void main(String[] args) throws Exception {
System.out.println("Hello, World!"); // Ex 1
int daysPerWeek = 7; // Ex 2.1
int numberOfWeeks = 6; // Ex 2.2
int totalDays = (daysPerWeek * numberOfWeeks); // Ex 2.3
System.out.println(totalDays);
boolean onHoliday = false; // Ex 2.4
if (onHoliday == false) {
System.out.println("You are not on holiday.");
}
double approxPI = 3.14; // Ex 2.5
System.out.println(approxPI * 2 * 3);
// Ex 2.6
String greetingString = "Hello"; // Ex 2.7
String introductionString = "My name is Inigo Montoya"; // Ex 2.8
String reminderString = "You killed my father"; // Ex 2.9
String threatString = "Prepare to die!"; // Ex 2.10
System.out.println(greetingString + ", " + introductionString + ", " +
reminderString + ", " + threatString);
int fingersOnRightHand = 5;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment