Top.Mail.Ru
June 26th, 2006 - Java developers — LiveJournal
? ?

Java developers

June 26th, 2006
Image

03:18 pm - Imagepopcorn09 - Negative shift distance?

public class NegativeShift {
  public static void main(String[] args) {
    System.out.print(8 << -1);
  }
}


What would be the output? And how does this work?
Image

06:42 pm - Imagespecialagentm - Tricky(?) regular expression

This isn't purely a Java question, but I figure I'll throw it out there because it's bugging the heck out of me and maybe someone will get their kicks helping me sort out how to do this. I swear, I should be able to figure this out, but it's a combination of greedy/non-greedy behavior that I just can't wrap my head around.

The re problem I'm havingCollapse )
Powered by LiveJournal.com
Image