Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fundamental coding help
#1
Well, I'm thinking I should form a good coding habit from the beginning. There is almost no complexity in these problems, but I feel that there are better ways to write the codes, or even more condensed logical approaches. So, if you're bored, would you kindly show me how you'd tackle these problems, I'll figure out the details on my own.

Current issue: I think I'm using if-else-then statements too excessively.

codingbat:

Logic:

1/

 Spoiler

2/

 Spoiler

3/

 Spoiler

4/

 Spoiler

I'll edit more in later, gotta go do something. Oh, and it's not strictly limited to Java, though the syntax alternatives should be.
Reply


Messages In This Thread
Fundamental coding help - by Kalovale - 2010-10-28, 04:38 AM
Fundamental coding help - by Fiel - 2010-10-28, 08:24 AM
Fundamental coding help - by Kalovale - 2010-10-28, 10:07 AM
Fundamental coding help - by Eos - 2010-10-28, 10:22 AM
Fundamental coding help - by Fiel - 2010-10-28, 10:38 AM
Fundamental coding help - by Kalovale - 2010-10-28, 12:16 PM
Fundamental coding help - by Nikkey - 2010-10-28, 12:49 PM
Fundamental coding help - by Kalovale - 2010-10-28, 12:59 PM
Fundamental coding help - by Nikkey - 2010-10-28, 01:06 PM
Fundamental coding help - by Kalovale - 2010-10-28, 01:09 PM
Fundamental coding help - by XTOTHEL - 2010-10-28, 02:47 PM
Fundamental coding help - by Nikkey - 2010-10-28, 03:06 PM
Fundamental coding help - by Dusk - 2010-10-28, 03:17 PM
Fundamental coding help - by Stereo - 2010-10-28, 03:45 PM
Fundamental coding help - by Kalovale - 2010-10-29, 10:50 AM
Fundamental coding help - by Spaz - 2010-10-29, 02:41 PM
Fundamental coding help - by Fiel - 2010-10-29, 04:07 PM
Fundamental coding help - by Stereo - 2010-10-30, 09:46 AM
Fundamental coding help - by Russt - 2010-10-30, 10:34 AM
Fundamental coding help - by Kalovale - 2010-11-03, 12:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)