First of all you can not have a string as you posted in question
String fname="C:extfilesdbqueryquery.txt";
this should be replaced by
String fname="C:\textfiles\db\query\query.txt";
as backslash("") needs an escape as well.
Finally you need to do something like this to split them:
String fname="C:\textfiles\db\query\query.txt";
String[] items= fname.split("");
System.out.println(Arrays.toString(items));
Hope this helps.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…