I cannot type the TAB key into the console for 2 strings separated by the tab key, i used the split method but it didn't work. The Java console does not accept the TAB key.
Here's a snippet of my code
String[] data;
String description, amount;
Scanner scan = new Scanner(System.in);
System.out.println("Enter the description, followed by a [TAB] key, and then the amount: ");
data = scan.nextLine().split("\\t");
description = data[0];
amount = data[1];
System.out.println("You have entered: " + description + " and " + amount)