We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java Datatypes
- Discussions
Java Datatypes
Java Datatypes
Sort by
recency
|
1581 Discussions
|
Please Login in order to post a comment
|| this is the easiest approach in java to solve this problem
import java.util.; import java.math.;
class Solution { public static void main(String[] argh) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); sc.nextLine(); // Consume newline
}