Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.javarush.test.level03.lesson05.task02;
- /* Реализация метода
- Реализуйте метод public static void writeToConsole(String s), который добавляет к началу строки выражение "printing: "
- и выводит измененную строку на экран, каждый раз с новой строки.
- Пример вывода для "Hello world!":
- printing: Hello world!
- */
- public class Solution
- {
- public static void main(String[] args)
- {
- writeToConsole("Hello world!");
- }
- public static void writeToConsole(String s)
- {
- System.out.println("printing: " + s);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement