'use 2 Scanner in android studio
can I use 2 Scanner in my program ? for example :
Scanner scanner1 = new Scanner(System.in);
System.out.println("Please enter your weight");
int weight = scanner1.nextInt();
Scanner scanner2 = new Scanner(System.in);
System.out.println("Please enter your height");
int height = scanner2.nextInt();
I want calculate bmi in android studio
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
