import java.util.Scanner;
public class StrinExp {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int i = 0;
String a = null;
System.out.println("Enter username");
i=scanner.nextInt();
a=a.valueOf(i);
System.out.print(a);
}
}
But m getting error when i am giving a alphanumeric value..
ex: Manish0818
and even when i am giving same value as string, still facing the same problem.
Help