wood burning stoves 2.0
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Request for scrunched up code listings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Request for scrunched up code listings" Watch "Request for scrunched up code listings" New topic

Request for scrunched up code listings

Bert Bates

Joined: Oct 14, 2002
Posts: 8898
I'm going to make an off-the-wall request that when we post code listings on this forum we scrunch up the code. I'll give you an example, and two reasons why:

1 - The code on the real exam is scrunched up, so it'll help everyone get used to it.
2 - It's easier to read when there's less scrolling to do:

So here's a recent example, and then how I'd recommend doing it:


Scrunched (like in the real exam):

Any thoughts?

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
marc weber

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Bert Bates:
...Any thoughts?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
kotha vijaybabu
Ranch Hand

Joined: Jan 28, 2006
Posts: 77
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Heck, why stop there?

public class ForwardRef { static { i = 10; } static int i = 5; }

"I'm not back." - Bill Harding, Twister
I agree. Here's the link: http://aspose.com/file-tools
subject: Request for scrunched up code listings
It's not a secret anymore!