There are excellent online resources for learning Java, but there is also some crap out there. I wouldn't say ANY online resource will be helpful.
A good place to start is the Java Tutorials, but...
Type: Posts; User: GregBrannon
There are excellent online resources for learning Java, but there is also some crap out there. I wouldn't say ANY online resource will be helpful.
A good place to start is the Java Tutorials, but...
This is a loop that collapses your string of 'if' statements into a more compact form:
// returns the index number for the argument
protected int getElementNumber( String slabType )
{...
I don't see any loops. The loops in Java are for, while, and do/while. Did you mean there are loops in the code you didn't post?
I don't know what problem you're trying to solve. I don't know...
You have a couple "lists" of if statements that could be simplified by using loops and combining actions. There's no reason that I can see to separately assign values to the variables varX and then...
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
I assume you're talking about this statement and others like...