help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

help

Fill in the blanks to create a class with a method called "myFunc" that takes no parameters, returns void, and prints "Hi" to the screen. public myClass public myFunc { System.out.println(''Hi''); } }

2nd Jan 2017, 9:58 AM
mohamed maher said
mohamed maher said - avatar
9 Answers
+ 10
public class myClass { public void myFunc() { System.out.println(''Hi''); } }
9th Apr 2018, 5:06 PM
Osama
0
public class myClass { public void myFunc () { System.out.println(''Hi''); } }
21st Mar 2017, 8:25 PM
Notan Mondal
0
public *class* myClass *{* public *void* myFunc*()* { System.out.println(''Hi''); } }
17th Apr 2018, 12:58 PM
Saurav Maskey
Saurav Maskey - avatar
0
********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
21st Jun 2018, 12:41 PM
Rustam Erik
Rustam Erik - avatar
0
Fill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute. Then create an object of the class. i pend hours on this what is the solution?
2nd Jun 2019, 4:22 AM
Zakariya Isah Zakariya
Zakariya Isah Zakariya - avatar
0
public myClass public myFunc { System.out.println(''Hi''); } }
9th Aug 2019, 5:06 AM
Ajay Mudekar
Ajay Mudekar - avatar
0
public class myClass { public void myFunc () { System.out.println(''Hi''); } }
7th Apr 2020, 4:07 PM
Pratik Futane
Pratik Futane - avatar
0
Public class my class{ Public void myFunc(){ System.out.println("Hi"); } }
18th Jun 2020, 8:29 AM
BoollX
BoollX - avatar
- 2
public void myFunc(){ } You must write void
2nd Jan 2017, 10:05 AM
Roman Gräf
Roman Gräf - avatar