initial commit
This commit is contained in:
@@ -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 not shown.
@@ -0,0 +1,46 @@
|
||||
import java.util.Scanner;
|
||||
|
||||
public class App {
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
// for(int i = 0; i < 5; i = i + 1){
|
||||
// System.out.println("**** " + i);
|
||||
// }
|
||||
|
||||
// System.out.println("veuiller saisir un mot : ");
|
||||
// String str = sc.nextLine();
|
||||
// System.out.println("Vous avez saisi : " + str);
|
||||
|
||||
// int a = 1; int b = 15;
|
||||
|
||||
// while (a < b){
|
||||
// System.out.println("coucou " + a + " " + b);
|
||||
// a++;
|
||||
// }
|
||||
|
||||
// char reponse = 'O';
|
||||
|
||||
// while (reponse == 'O') {
|
||||
// System.out.println("veuiller saisir un prenom : ");
|
||||
// String prenom = sc.nextLine();
|
||||
// System.out.println("Bonjour, " + prenom);
|
||||
// System.out.println("voulez-vous réessayer ? (O/N) ");
|
||||
// reponse = sc.nextLine().charAt(0);
|
||||
// }
|
||||
// System.out.println("A+");
|
||||
|
||||
char reponse = 'O';
|
||||
|
||||
do{
|
||||
System.out.println("veuiller saisir un prenom : ");
|
||||
String prenom = sc.nextLine();
|
||||
System.out.println("Bonjour, " + prenom);
|
||||
System.out.println("voulez-vous réessayer ? (O/N) ");
|
||||
reponse = sc.nextLine().charAt(0);
|
||||
} while (reponse == 'O');
|
||||
System.out.println("A+");
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user