In this example we will show the method to call a method multiple times in Java.
Source Code
package com.beginner.examples;
public class MultipleCall {
static void test() {
System.out.println("test");
}
public static void main(String[] args) {
// call a method multiple times
test();
test();
test();
}
}
Output:
test
test
test