Browsing 7239 questions and answers with Jon Skeet
Three options: Declare an abstract newClassLoader() method in PluginManager, which is overridden in ServiceManager to return a new ServiceClassLoader etc Change your parameter type from PluginType to Class<? extends ClassLoader>,... more 12/4/2014 5:24:18 PM
You're blocking the UI thread. Don't do that, basically... use a swing timer or something similar if you want to do something on the UI thread at a later time. Golden rules: Don't do anything time consuming on the UI thread Only access... more 12/4/2014 2:36:01 PM
I suspect the problem is that it's treating IDNumber as an IEnumerable<char> (because string is indeed a sequence of characters). You probably want something more like: var list = (from a in TABLE01 where a.IDNumber != "... more 12/4/2014 1:18:19 PM
This is the problem: TimeZone.getTimeZone("est") I suspect you write: System.out.println(TimeZone.getTimeZone("est")); you'll get something... more 12/4/2014 11:10:39 AM
Why use an if statement at all? return code.equalsIgnoreCase("AA") || code.equalsIgnoreCase("AB") || code.equalsIgnoreCase("SS") || code.equalsIgnoreCase("DD") || code.equalsIgnoreCase("YY") || ... more 12/4/2014 10:22:29 AM
Yes, that's what CRCs are like. They're not unique IDs. They're likely to be different for different inputs, but they don't have to be. After all, you're providing more than 32 bits of input, so you can't expect to have more than 232... more 12/4/2014 10:11:25 AM
I suspect the problem is that you've got setValue(Double value) Now the type of your conditional expression (b.getValue() != null ? b.getValue() : 0) is double, following the rules of JLS section 15.25.2: If one of the operands is... more 12/4/2014 7:09:33 AM
It sounds like you had a Thread class in the default package - potentially just the class file, rather than the source file. java.lang.* is imported automatically, and all the rest of your imports are single-class imports, so that's the... more 12/4/2014 6:44:58 AM
The simplest option is simply to ask for 51 rows... if you only get 50 back, then it's clearly the last page. Even if 51 rows are returned, you only display 50 rows, but you know if there are any more available. more 12/3/2014 10:59:31 PM
How come there is an error saying variable x cannot be found? Because x isn't declared in pass - it's only declared in passCheck. It's not in scope in your test method. This has nothing to do with JUnit - it's just plain Java. You... more 12/3/2014 10:52:40 PM