java面试常考的数据结构递归、排序、查找。packagemypackage;//利用递归方式解决汉诺塔问题importjava.io.*;classHanoi{publicstaticvoidanykey_f(){//按任一键即继续执行FunctionchartChar;System.out.println("\nPressanykeytocontinue...");try{tChar=(char)System.in.read();}catch(IOExceptione){}}//递归函数调用求汉诺塔之解publicstaticvoid