0

I was looking for a functional interface provided by java.util package which do not take argument and returns void. There are number of Functional interfaces in java.util package like Consume and Supplier, but i am looking for a functional interface without argument and without return type. I know that i can create some interface like 'Operation' which will serve my purpose, but if it is already available in java.util, it would be good to use.

Gunwant
  • 949
  • 1
  • 14
  • 29

1 Answers1

2

You're looking for java.lang.Runnable

Nicholas K
  • 15,148
  • 7
  • 31
  • 57
talex
  • 17,973
  • 3
  • 29
  • 66