my first one
This repository builds logic for coding in java.
This repository uses an additional function called scanner.
To use this u have to writeimport java.util.scanner
Before starting your code.
Scanner function recieve inputs from user. To use this to take different data type different syntax is used.
For integer use
int a = sc.nextInt();
Similarly
float a=sc.nextFloat();
double a=sc.nextDouble();
And for string use
string a=sc.nextLine();