Click here to Skip to main content
15,897,704 members
Home / Discussions / Java
   

Java

 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan25-Apr-11 22:16
mveRichard MacCutchan25-Apr-11 22:16 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Nagy Vilmos27-Apr-11 5:43
professionalNagy Vilmos27-Apr-11 5:43 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan27-Apr-11 6:53
mveRichard MacCutchan27-Apr-11 6:53 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
David Skelly28-Apr-11 1:48
David Skelly28-Apr-11 1:48 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan28-Apr-11 5:54
mveRichard MacCutchan28-Apr-11 5:54 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
CoderForEver26-Apr-11 3:26
CoderForEver26-Apr-11 3:26 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan26-Apr-11 10:15
mveRichard MacCutchan26-Apr-11 10:15 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Luc Pattyn26-Apr-11 4:05
sitebuilderLuc Pattyn26-Apr-11 4:05 
Hi,

some comments:

1.
you should implement error handling in your code; have a try-catch and log the exception.

2.
when an exception occurs, it gives the number of the offending line; that is where the problem shows itself, the actual cause may be somewhat sooner.

3.
when the exception occurs in a method call, check the documentation for that method to see what it has to say about the specific exception. That should tell you exactly what is wrong.

4.
Your searchForFile() method is a bit silly, it tells whether a file exists, but when it does, it does not tell you where it is. A better definition of it would return the path to the first occurence it finds as a string.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
jschell26-Apr-11 8:03
jschell26-Apr-11 8:03 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
David Skelly26-Apr-11 22:16
David Skelly26-Apr-11 22:16 
RantRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan26-Apr-11 22:28
mveRichard MacCutchan26-Apr-11 22:28 
QuestionIf string is a immutable class then how come it is allowing us to make changes ? Pin
shiva.kore23-Apr-11 7:11
shiva.kore23-Apr-11 7:11 
AnswerRe: If string is a immutable class then how come it is allowing us to make changes ? Pin
Luc Pattyn23-Apr-11 7:25
sitebuilderLuc Pattyn23-Apr-11 7:25 
GeneralRe: If string is a immutable class then how come it is allowing us to make changes ? Pin
shiva.kore23-Apr-11 7:45
shiva.kore23-Apr-11 7:45 
GeneralRe: If string is a immutable class then how come it is allowing us to make changes ? Pin
CoderForEver23-Apr-11 20:40
CoderForEver23-Apr-11 20:40 
QuestionDesktop notification application in java Pin
krutikaji22-Apr-11 7:32
krutikaji22-Apr-11 7:32 
AnswerRe: Desktop notification application in java Pin
jschell22-Apr-11 14:02
jschell22-Apr-11 14:02 
GeneralRe: Desktop notification application in java Pin
Richard MacCutchan22-Apr-11 22:40
mveRichard MacCutchan22-Apr-11 22:40 
GeneralRe: Desktop notification application in java Pin
TorstenH.25-Apr-11 11:58
TorstenH.25-Apr-11 11:58 
QuestionIn-place Merge-Sort with doubly linked list Pin
Manfr3d22-Apr-11 1:35
Manfr3d22-Apr-11 1:35 
AnswerRe: In-place Merge-Sort with doubly linked list Pin
TheLaughingManAnDerTU25-Apr-11 9:03
TheLaughingManAnDerTU25-Apr-11 9:03 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
Manfr3d25-Apr-11 9:16
Manfr3d25-Apr-11 9:16 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
TheLaughingManAnDerTU25-Apr-11 10:29
TheLaughingManAnDerTU25-Apr-11 10:29 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
Manfr3d25-Apr-11 12:20
Manfr3d25-Apr-11 12:20 
GeneralRe: In-place Merge-Sort with doubly linked list Pin
JavaStudent_LA25-Apr-11 16:11
JavaStudent_LA25-Apr-11 16:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.