Carey Brown wrote:After reading you post again I'm not sure I was answering the right question. What exactly is your input and what are you expecting as output? If you are starting out with a File, you can get the drive letter by looking at the first character of File.getAbsolutePath() [only true for windows of course].
Henry Wong wrote:
Please ShowSomeEffort. We have no idea what you know, what you are confused with, etc.
Henry
Panagiotis Kalogeropoulos wrote:The println method in System.out requires a String as a parameter. The parameter that you provide is not a String, but a reserved word by Java (such as while, if, transient etc..). This explains the compilation problem. But if you want to evoke a method from a superclass, then you should use super.methodToCall(), where methodToCall is your method. Note that this method must not return void, as you will have again problems with the compiler.