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
7 changes: 7 additions & 0 deletions Task2/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"java.project.sourcePaths": ["src"],
"java.project.outputPath": "bin",
"java.project.referencedLibraries": [
"lib/**/*.jar"
]
}
18 changes: 18 additions & 0 deletions Task2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## 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).
Binary file added Task2/bin/App.class
Binary file not shown.
Binary file added Task2/src/App.class
Binary file not shown.
17 changes: 17 additions & 0 deletions Task2/src/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
Scanner input=new Scanner(System.in);
System.out.print("Hello User, this Program Will Take Two Numbers to Print the Maximum\nPlease Enter the First Number: ");
double x=input.nextDouble();
System.out.print("Now Enter the Second Number: ");
double y=input.nextDouble();
if(x>y){
System.out.println("The First Number "+x+" Is the Maximum");
} else if (x<y){
System.out.println("The Second Number "+y+" Is the Maximum");
} else {
System.out.println("Both Number are Equal to Each Other, Please Try Again");
}
}
}
Binary file modified bin/App.class
Binary file not shown.