Write a void method named myMethod which prints "I'm a void method!" (without the quotes). Your method should be declared public and static. You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method before checking your code for a score.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
Instructions
Write a void method named myMethod which prints "I'm a void method!" (without the quotes). Your method should be declared
public and static.
You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the
main method before checking your code for a score.
Files
U5 L1 Activity_One.java
1
2
10
3 import java.util.Scanner;
4
5 public class U5_L1_Activity_One
6- {
7
8
9
11
12-
13-
14
15
16
է
NOT SUBMITTED
* Lesson 1 Coding Activity Question 1 */
17 }
RESET
}
*/
SAVE
/* Add the method myMethod here */
// You can uncomment and add to the main method to test your
code
// You will need to remove/comment out this method before
checking your code for a score
public static void main(String[] args) {
SUBMIT
INSTRUCTIONS
A
RUN CODE
► RUN CODE
GRADING
CLEAR
KX
KY
HISTORY
STOP
Transcribed Image Text:Instructions Write a void method named myMethod which prints "I'm a void method!" (without the quotes). Your method should be declared public and static. You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method before checking your code for a score. Files U5 L1 Activity_One.java 1 2 10 3 import java.util.Scanner; 4 5 public class U5_L1_Activity_One 6- { 7 8 9 11 12- 13- 14 15 16 է NOT SUBMITTED * Lesson 1 Coding Activity Question 1 */ 17 } RESET } */ SAVE /* Add the method myMethod here */ // You can uncomment and add to the main method to test your code // You will need to remove/comment out this method before checking your code for a score public static void main(String[] args) { SUBMIT INSTRUCTIONS A RUN CODE ► RUN CODE GRADING CLEAR KX KY HISTORY STOP
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,