Challenge: Basic Method Creation
Oppgave
Swipe to start coding
Practice creating and calling methods that do not accept any parameters.
- Create a public static method named
printWelcomethat prints the string:Welcome to the Java Methods Challenge!; - Create a public static method named
showInstructionsthat prints the string:Follow the instructions carefully to complete the task.; - Create a public static method named
printCompletionthat prints the string:Congratulations! You have completed the challenge.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 8.33
Challenge: Basic Method Creation
Sveip for å vise menyen
Oppgave
Swipe to start coding
Practice creating and calling methods that do not accept any parameters.
- Create a public static method named
printWelcomethat prints the string:Welcome to the Java Methods Challenge!; - Create a public static method named
showInstructionsthat prints the string:Follow the instructions carefully to complete the task.; - Create a public static method named
printCompletionthat prints the string:Congratulations! You have completed the challenge.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single