Browsing 7239 questions and answers with Jon Skeet
The value of the newlink variable in insertFirst is copied into the instance variable here: first=newlink; Then in displayLink, the value of first is copied back into a local variable: link current=first; It's important to... more 1/22/2014 7:24:49 PM
When this happens normally, it means that the cast isn't really checking anything. Here's a concrete example: import java.util.*; public class Test { public static void main(String args[]) { List<String> strings = new... more 1/22/2014 6:50:57 PM
The problem is that your shift is effectively dividing by 16... so you end up losing information. You can't exactly represent any values which aren't exactly divisible by 16 (i.e. values which don't have the bottom four bits as 0000.) If... more 1/22/2014 6:20:49 PM
If you're using C# 5, you can use caller information attributes to do this. For example: using System; using System.IO; using System.Runtime.CompilerServices; public class Test { static void Log(string message, ... more 1/22/2014 6:18:20 PM
It's okay not to understand a particular class when you know that its use is in a member that's definitely not applicable for the call you're making, because you're specifying two arguments and the member only takes one parameter. It's... more 1/22/2014 4:31:52 PM
The problem is that if an exception is thrown, you catch it and then drop to the end of the method without returning a value. What do you want the caller to see at that point? I suspect you either want to let the exception propagate up... more 1/22/2014 4:11:22 PM
You just need to call isDaylightSavingTimeForDate, passing in the relevant NSDate. It's not that isDaylightSavingTime itself has two parameters - it's that it calls isDaylightSavingTimeForDate with the current date. From the docs for... more 1/22/2014 4:05:34 PM
Basically you've got to rewrite the file, at least from the middle. This isn't a matter of Java - it's a matter of what file systems support. Typically the way to do this is to open both the input file and an output file, then: Copy the... more 1/22/2014 3:16:34 PM
You haven't specified any parameters in your SQL, or a VALUES section - you're saying "I want to insert into these fields..." but not what you want to insert. It should be something like: string insCmd = "Insert into Accounts... more 1/22/2014 2:35:53 PM
It sounds like the problem is that ffmpeg is writing log information, and you're not reading it in the Java code. There will be a small buffer between the processes, and when that buffer fills up, ffmpeg will block when it tries to write... more 1/22/2014 1:20:49 PM