About 254,000 results
Open links in new tab
  1. 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 …

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

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

  3. 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 …

  4. super() in Java - Stack Overflow

    Sep 22, 2010 · If you don't a Java will generate one for you with no implementations, save super (); , referring to the universal Superclass Object, and you can't call it in a subclass.

  5. How can one java file call methods from another java file?

    Apr 11, 2017 · How do you call a method from a different class (file) in java? Are objects required? Or is there a 3rd way to make a merge of documents for java? Can we use a simple …

  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 …

  7. 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 …

  8. How to asynchronously call a method in Java - Stack Overflow

    Dec 4, 2009 · 139 Java 8 introduced CompletableFuture, available in the package java.util.concurrent.CompletableFuture, which can be used to make an async call :

  9. reflection - How do I invoke a Java method when given the …

    Object obj; String methodName = "getName"; Without knowing the class of obj, how can I call the method identified by methodName on it? The method being called has no parameters, and a …

  10. interface - Java Pass Method as Parameter - Stack Overflow

    Feb 3, 2010 · Java 8 onwards, you can provide the implementation of the abstract method of a functional interface (an interface that has only one abstract method) using a lambda …