read integer input java
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
read integer input java
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
how to scan Integer in Java
import java.util.*;
public class HowToScan {
public static void main( String args[] )
{
Scanner S = new Scanner(System.in);
int a;
int b;
int sum;
a = S.nextInt();
b = S.nextInt();
sum = a + b;
System.out.println( a + "+" + b + "=" + sum );
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us