Click here to Skip to main content
15,895,799 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why I'm Against Higher Resolution TV Pin
W Balboos, GHB20-Feb-20 5:32
W Balboos, GHB20-Feb-20 5:32 
GeneralRe: Why I'm Against Higher Resolution TV Pin
dandy7219-Feb-20 6:40
dandy7219-Feb-20 6:40 
GeneralRe: Why I'm Against Higher Resolution TV Pin
W Balboos, GHB20-Feb-20 5:44
W Balboos, GHB20-Feb-20 5:44 
GeneralRe: Why I'm Against Higher Resolution TV Pin
dandy7220-Feb-20 6:11
dandy7220-Feb-20 6:11 
GeneralRe: Why I'm Against Higher Resolution TV Pin
dandy7219-Feb-20 6:09
dandy7219-Feb-20 6:09 
General2 Dim arrays in Java Pin
Nand3218-Feb-20 3:41
Nand3218-Feb-20 3:41 
GeneralRe: 2 Dim arrays in Java Pin
User 1106097918-Feb-20 3:58
User 1106097918-Feb-20 3:58 
GeneralRe: 2 Dim arrays in Java Pin
OriginalGriff18-Feb-20 4:12
mveOriginalGriff18-Feb-20 4:12 
Because generally speaking, you can normally access memory via it's address - and that means that to more to the "next" element you have to know the actual memory organisation. (Java doesn't have pointers, but this can be very important if you want to share data with other languages.)
And ... an array of 2 lines of 10,000 chars will occupy a lot less memory than an array of 10,000 lines of 2 chars ... plus, both will use more memory than a "true" 2D array of chars with the same number of elements.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!

GeneralRe: 2 Dim arrays in Java Pin
User 1106097918-Feb-20 8:16
User 1106097918-Feb-20 8:16 
GeneralRe: 2 Dim arrays in Java Pin
kalberts18-Feb-20 10:50
kalberts18-Feb-20 10:50 
GeneralRe: 2 Dim arrays in Java Pin
OriginalGriff18-Feb-20 11:34
mveOriginalGriff18-Feb-20 11:34 
GeneralRe: 2 Dim arrays in Java Pin
kalberts18-Feb-20 22:55
kalberts18-Feb-20 22:55 
GeneralRe: 2 Dim arrays in Java Pin
dandy7218-Feb-20 5:50
dandy7218-Feb-20 5:50 
GeneralRe: 2 Dim arrays in Java Pin
harold aptroot18-Feb-20 4:03
harold aptroot18-Feb-20 4:03 
GeneralRe: 2 Dim arrays in Java Pin
PIEBALDconsult18-Feb-20 8:37
mvePIEBALDconsult18-Feb-20 8:37 
GeneralRe: 2 Dim arrays in Java Pin
Mark_Wallace18-Feb-20 9:26
Mark_Wallace18-Feb-20 9:26 
GeneralRe: 2 Dim arrays in Java Pin
Nand3218-Feb-20 18:27
Nand3218-Feb-20 18:27 
GeneralRe: 2 Dim arrays in Java Pin
kalberts19-Feb-20 0:58
kalberts19-Feb-20 0:58 
GeneralRe: 2 Dim arrays in Java Pin
Nand3219-Feb-20 3:45
Nand3219-Feb-20 3:45 
GeneralRe: 2 Dim arrays in Java Pin
kalberts19-Feb-20 4:43
kalberts19-Feb-20 4:43 
GeneralRe: 2 Dim arrays in Java Pin
PIEBALDconsult20-Feb-20 8:47
mvePIEBALDconsult20-Feb-20 8:47 
GeneralRe: 2 Dim arrays in Java Pin
Nand3221-Feb-20 19:07
Nand3221-Feb-20 19:07 
QuestionLeaving work at the doorstep... Pin
Marc Clifton18-Feb-20 3:08
mvaMarc Clifton18-Feb-20 3:08 
AnswerRe: Leaving work at the doorstep... Pin
Dan Neely18-Feb-20 3:14
Dan Neely18-Feb-20 3:14 
AnswerRe: Leaving work at the doorstep... Pin
MarkTJohnson18-Feb-20 3:24
professionalMarkTJohnson18-Feb-20 3:24 

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.