Generic Class in java is a feature. We write code once and use it for any data type including user defined data types. Given an integer or a string as an input.Print the type of input and the given value as output.
The first line will contain an integer T (number of test cases). First line of each test case will contain one integer c. Next line will contain a string if c is equal to 1 or will contain a integer if c is equal to 2.
Print the type of the given data and the given value in new line.
1 < = T < = 100
1 < = c < = 2
1<= Length of strings, integers<=103