Click here to Skip to main content
15,898,134 members
Home / Discussions / Java
   

Java

 
GeneralRe: Get values from cookies4.dat (a file of Opera browser) Pin
TorstenH.7-Jul-11 19:41
TorstenH.7-Jul-11 19:41 
Questionshow database in java ?? Pin
kellyyy1-Jul-11 18:01
kellyyy1-Jul-11 18:01 
AnswerRe: show database in java ?? Pin
Richard MacCutchan1-Jul-11 22:19
mveRichard MacCutchan1-Jul-11 22:19 
AnswerRe: show database in java ?? Pin
jschell4-Jul-11 7:07
jschell4-Jul-11 7:07 
QuestionShow FireFox cookies with Java [modified] Pin
CodeGust29-Jun-11 8:40
CodeGust29-Jun-11 8:40 
AnswerRe: Show FireFox cookies with Java Pin
Richard MacCutchan29-Jun-11 21:42
mveRichard MacCutchan29-Jun-11 21:42 
AnswerRe: Show FireFox cookies with Java Pin
TorstenH.30-Jun-11 3:51
TorstenH.30-Jun-11 3:51 
QuestionEclipse (Java?) makes try/catch mandatory? Pin
Helfdane27-Jun-11 22:33
Helfdane27-Jun-11 22:33 
Hi,

I'm usually programming in .net but now I have to do a project in java. Nothing wrong with it, but Eclipse demands try/catch blocks on sortof every call which might pose a problem, even if I have error handling in place. How do I get rid of that? I just need a quick check for something, but it even prevents me to compile it.

private void doSomething()
{
Properties properties = readProperties(chooser.getSelectedFile().getCanonicalPath()); <--- compile error
// do something with properties
}
private void readProperties(String location)
{
// do stuff including errorhandling
}

While the location of my errorhandling might be debatable, this is for a proof of concept app where I *know* the input is correct.
A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder)

AnswerRe: Eclipse (Java?) makes try/catch mandatory? Pin
TorstenH.28-Jun-11 1:56
TorstenH.28-Jun-11 1:56 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
Helfdane28-Jun-11 1:58
Helfdane28-Jun-11 1:58 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
TorstenH.28-Jun-11 2:04
TorstenH.28-Jun-11 2:04 
AnswerRe: Eclipse (Java?) makes try/catch mandatory? Pin
Gerben Jongerius28-Jun-11 6:34
Gerben Jongerius28-Jun-11 6:34 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
Helfdane28-Jun-11 20:47
Helfdane28-Jun-11 20:47 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
TorstenH.29-Jun-11 2:32
TorstenH.29-Jun-11 2:32 
GeneralRe: Eclipse (Java?) makes try/catch mandatory? Pin
Helfdane29-Jun-11 3:25
Helfdane29-Jun-11 3:25 
AnswerRe: Eclipse (Java?) makes try/catch mandatory? Pin
Nagy Vilmos29-Jun-11 3:20
professionalNagy Vilmos29-Jun-11 3:20 
QuestionJava canvas problems [modified] (Solved) Pin
Davíð Þór27-Jun-11 3:13
Davíð Þór27-Jun-11 3:13 
AnswerRe: Java canvas problems Pin
TorstenH.28-Jun-11 2:02
TorstenH.28-Jun-11 2:02 
GeneralRe: Java canvas problems [modified] Pin
Davíð Þór28-Jun-11 5:20
Davíð Þór28-Jun-11 5:20 
GeneralRe: Java canvas problems Pin
TorstenH.28-Jun-11 20:43
TorstenH.28-Jun-11 20:43 
GeneralRe: Java canvas problems Pin
Davíð Þór29-Jun-11 0:39
Davíð Þór29-Jun-11 0:39 
GeneralRe: Java canvas problems Pin
TorstenH.29-Jun-11 2:31
TorstenH.29-Jun-11 2:31 
AnswerRe: Java canvas problems Pin
David Skelly28-Jun-11 6:17
David Skelly28-Jun-11 6:17 
GeneralRe: Java canvas problems Pin
Davíð Þór28-Jun-11 7:05
Davíð Þór28-Jun-11 7:05 
GeneralRe: Java canvas problems Pin
Davíð Þór29-Jun-11 0:36
Davíð Þór29-Jun-11 0:36 

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.