Browsing 7239 questions and answers with Jon Skeet
I suspect the problem is that you're using a string literal in your Java code using an editor which writes it out in one encoding - but then you're compiling without specifying the same encoding. In other words, I suspect that your "£"... more 3/1/2014 9:00:21 PM
The problem is that you're still trying to call the method on o, which is still of type Object (in terms of the compile-time type of the variable, which is all the compiler cares about). If you call the method on oAnimal instead, it will... more 3/1/2014 8:37:29 PM
How would I go about letting them execute in parallel and join the results as they complete? The simplest approach is just to create all the tasks and then await them: var task1 = myService.GetData(source1); var task2 =... more 3/1/2014 5:06:12 PM
As Sotirios has said, your nested (not-inner) class doesn't implicitly have an instance of Outer to effectively provide to the Inner. You can get round this, however, by explicitly specifying it before the .super part: public... more 3/1/2014 4:41:40 PM
Printing the lenght of the string, it reported it being 80 chars long. Right, well that's the problem then. Your string isn't "277.968" - it's "277.968\0\0\0\0\0\0(...)" - and that can't be parsed. My guess is that you've read this... more 3/1/2014 2:45:30 PM
The problem is here: 25*60*60*24*1000 All of this is being performed in integer arithmetic - and that value is overflowing. You can see that if you perform the arithmetic using long values instead, and show the result compared to... more 3/1/2014 12:24:09 PM
You can't - this isn't a Dev Express limitation per se, but a limitation of the Express SKUs of Visual Studio: they don't allow plugins to be installed. So the same is true for ReSharper, NCrunch etc. It's one of the differentiation... more 3/1/2014 10:41:21 AM
It's simpler to show you an equivalent situation - let's use Object and String in the place of Map<Character, Integer> and HashMap<Character, Integer>. Suppose we could write Set<Object> set = new... more 3/1/2014 8:42:29 AM
No, you can't use Windows Forms code in Xamarin. The idea of Xamarin is that it uses the UI framework which is native to the OS you're writing for - so that isn't portable - but you can share the business logic which will be common to all... more 2/28/2014 1:25:37 PM
Is it possible to get Eclipse to ignore the error "Unhandled exception type FileNotFoundException". No. That would be invalid Java, and Eclipse doesn't let you change the rules of the language. (You can sometimes try to run code which... more 2/28/2014 10:45:45 AM