Ricky Long wrote:On Project Explorer, if you minimize the class to hide the methods, then the problem goes away. You still can have both "Toggle Mark Occurrence" and "Link editor with Explorer" selected. Not a solution, but at least a way to avoid getting annoyed.
Martin Vajsar wrote:
I've personally resolved this issue by implementing my own logger (it calls log4j in turn, of course). The important part is here:
The message is passed to the logger as a String plus an array of references (causing an overhead I'm really not going to care about), and is formatted only when the logger is active. Regardless of how expensive the logged object's toString() method is, it is evaluated only when needed.
Note: I'd like to make findbugs check the formal parameters of the debug method in the same way it checks the String.format() invocations, but I didn't find time to delve into the modifications yet.
Joanne Nea wrote:
Why do you want to do this ? Have you seen that the the calls are causing a performance problem or are you just assuming that they will ?
Unless there is a demonstrable performance problem due to these calls then you shouldn't worry about them.
Wendy Gibbons wrote:please could you provide a concrete example of why you are trying to do this, as I am completely stumped about what you are trying to achieve.
instead of calling the method that has been written in the code, you want to call another method completely?
so instead of calling Wendy.hello() you want to call fred.confused()
but you want this being controlled at runtime not in the code?
couldn't you just..
Steve Hall wrote:
Why then would you want to make an array that can contain multiple types? I mean it seems useful at first. I could have an array of electronics that contains televisions, computers, phones and so forth. But if I can't call the methods of these specific types why bother? In normal implementation do you cast it as the appropriate type every time? I could see this leading to mismatching problems pretty easily unless you are very careful.
I think I have the what happens part down I just am not sure about the reason why this is useful, why would I ever type a subclass object as a superclass if i can't access it's methods.
Halley Thomas wrote:
It means there is no improvement in performance if use the += operator if I have two variables, right?
Halley Thomas wrote:Which is better?
a+=b;
or
a=a+b;
Can you please explain why also?
marc weber wrote:
abalfazl hossein wrote:...
May you explain about this output:
[1, 2, 3, 4]
I have no idea. That does not appear when I run your code.
Ernest Friedman-Hill wrote:
Anyway, despite that website's claim that NaviCoder is powerful and popular and wonderful, I've never heard of it, and the online manual makes it look positively dreadful. There are many better choices available -- don't torture yourself trying to make this toy IDE work if it's preventing you from doing something as simple as adding command-line arguments to a program. Eclipse, NetBeans, or for beginners, BlueJ (all these are easily Google-able) are industry standards and are all fine pieces of software.
Rakesh Ss wrote:Hi,
How do we pass command line argument, when we are executing through IDE.
Currently I'm using NaviCoder IDE.
Thanks in advance,