diff --git a/Task2/.vscode/settings.json b/Task2/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Task2/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Task2/README.md b/Task2/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Task2/README.md @@ -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). diff --git a/Task2/bin/App.class b/Task2/bin/App.class new file mode 100644 index 0000000..9a7f973 Binary files /dev/null and b/Task2/bin/App.class differ diff --git a/Task2/src/App.class b/Task2/src/App.class new file mode 100644 index 0000000..b9247eb Binary files /dev/null and b/Task2/src/App.class differ diff --git a/Task2/src/App.java b/Task2/src/App.java new file mode 100644 index 0000000..2e00cbf --- /dev/null +++ b/Task2/src/App.java @@ -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