Top "Method-call" questions

NullPointer Exception when calling method from a difference class

JAVA- Hi, I am writing a minesweeper program (first biggie) and am really stuck. The program itself is comprised of 2 …

java nullpointerexception method-call
"Iterating" through methods

Let's say I've got a Java object that's got among others the following methods: public String getField1(); public String getField2(); …

java methods call method-call
Can you call a function in MainWindow.Xaml.cs from App.Xaml.cs?

This seems doable but for some reason the proper way is not occurring to me. I am new to C# …

c# wpf method-call
Difference between Calling a Sub and Application.Run

In my business, we have a few teams that work on very simple macros. I'm trying to make them all …

excel vba method-call
Java calling method and using ternary operator and assign in the parameters?

I was reviewing some code and I came across this: public static doSomething(String myString, String myString2) { //Stuff } public static …

java variable-assignment ternary method-call
How to verify a non-mocked method was called?

I want to test that my method calls another method in the same class that I cannot mock. Example: public …

java unit-testing mockito verify method-call
How do I call a method of a Java instance from JavaScript?

I'm using the Mozilla Rhino JavaScript emulator. It allows me to add Java methods to a context and then call …

java javascript rhino method-call
How to call method inside the same class in ReactJS?

I want to call the method inside the same class. For example, when I click a button, it will trigger …

javascript reactjs method-call
How to pass objects to keywords in robot framework?

I have a python class MyClass written in file MyClass.py: class MyClass(object): def __init__(self): self.myvar = list() …

python object robotframework method-call
How to add some action in constructor?

Naive question I believe, but all I find is just calling other constructors from constructors. I need to call a …

scala constructor method-call