How to call the void method of removeAllNumbersGreaterThan10() in the main method and display the result on screen, and also how to display the output on screen using both methods createSet() and removeAllNumbersGreaterThan10() method and other scenario with individual methods as well can anyone help?
How to call the void method of removeAllNumbersGreaterThan10() in the main method and display the result on screen, and also how to display the output on screen using both methods createSet() and removeAllNumbersGreaterThan10() method and other scenario with individual methods as well can anyone h
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Thomas
11 July 2023, 08:37
I've posted test code for that task yesterday here
For the output you also can use a regular for-each loop instead of a method reference.
+1