Top.Mail.Ru
July 11th, 2006 - Java developers — LiveJournal
? ?

Java developers

July 11th, 2006
 

03:31 am - curious_tiger - Documentation question

Here is something I don't understand. Let's say I just want to find out how to use a simple array in Java. (I already know, that's not really the point.) The point is the Sun documentation on classes. Here is the documentation on Arrays. I'm confused because it doesn't include any constructor information (the various syntax which can be used for creating an array). I must be missing something really obvious. Say a newbie person just wants to find this stuff out. Where would s/he look?
 

05:18 pm - curious_tiger - Eclipse question

Eclicpse completes quotes and parenthesis for the user. Is there an easy way to get out of the quote or parenthesis in order to put a semi-colon on the line, without presing the right-arrow key? Otherwise, the auto-quote and auto-end-paren features seem like they take up time instead of saving time.

Current workflow:
1.Type:
String a = "foo
2. Eclipse has added an end quote for me, so the text looks like (| is the cursor position):
String a = "foo|"
3. I need to add a semi-colon to the end of the line. It's a pain to pick up the mouse to do this, and equally a pain to use the right-arrow key, which requires me changing my hand-position (at least on my Toshiba laptop). But I do one or the other.

So apparently, this workflow is supposed to be "efficient," otherwise Eclicpse wouldn't have this auto-adding-the-second-quote-for-you feature. What am I missing?

Thanks.

Powered by LiveJournal.com