About 50 results
Open links in new tab
  1. Calling methods in Java - Stack Overflow

    Basically, you can call non-static methods like this: method(); or this.method(); When you use the second syntax with this, you will be telling the compiler that you will be calling from the instance you …

  2. calling another method from the main method in java

    Jan 31, 2011 · So my question is: How do you call methods from the main method and if it is not possible what are some alternative strategies to call methods after the program is run from the …

  3. Can we call a function within a function in Java? - Stack Overflow

    Oct 4, 2012 · If I understand your question correctly, you're asking if you can call a function within a function in a standard non-static Java method. That's possible, as long as the function you want to …

  4. How to pass a function as a parameter in Java? [duplicate]

    Mar 8, 2023 · More answers on how to use a Lambda function, or pass it as a parameter: simple example parameter as a function java.

  5. How to call kotlin suspend function from Java project

    Feb 24, 2023 · To call a Kotlin suspend function from Java, we can use CompletableFuture. Add below dependency on gradle: dependencies { implementation "org.jetbrains.kotlinx:kotlinx-coroutines …

  6. Call Kotlin suspend function in Java class - Stack Overflow

    Oct 18, 2018 · I used to have Java code that managed to create an implementation of Continuation and call a suspend fun, but in Kotlin 1.3 Continuation declares resumeWith(Result), where Result is a …

  7. Call a function by its name, given from string java

    May 31, 2010 · Java has methods, not functions. The difference is that methods have classes; you need to know the class to call the method. If it's an instance method, you need an instance to call it on, but …

  8. java - How to call a method function from another class ... - Stack ...

    Oct 9, 2014 · 1 For calling the method of one class within the second class, you have to first create the object of that class which method you want to call than with the object reference you can call the …

  9. java - How to call function on button click? - Stack Overflow

    Jan 10, 2017 · Java 8 figures all that out for you. It knows that the Button constructor expects a MyFunction parameter, and it knows that MyFunction only has one method, call() with no …

  10. call a stored function on postgres from java - Stack Overflow

    CREATE FUNCTION funct(arg1 type1, arg2 type2, ...) RETURNS void AS $$ BEGIN --insert passed args in some tables END How can I call this function from java and pass args properly?