Commit b1cf14c2 authored by james.langley's avatar james.langley

Test2

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
/* These are the exercises for week2 */
public class App {
public static void main(String[] args) throws Exception {
// Ex 1.1
int daysPerWeek = 7;
int numberOfWeeks = 6;
int totalDays = (daysPerWeek * numberOfWeeks);
System.out.println(totalDays);
// Ex 1.4
String greeting = "Hello,";
String introducing = "My name is Inigo Montoya,";
String reminder = "You killed my father,";
String threat = "Prepare to die!";
System.out.println(greeting + introducing + reminder + threat);
}
}
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