Advertisement
Azazavr

com.javarush.test.level03.lesson05.task02

Jan 29th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. package com.javarush.test.level03.lesson05.task02;
  2.  
  3. /* Реализация метода
  4. Реализуйте метод public static void writeToConsole(String s), который добавляет к началу строки выражение "printing: "
  5. и выводит измененную строку на экран, каждый раз с новой строки.
  6. Пример вывода для "Hello world!":
  7. printing: Hello world!
  8. */
  9.  
  10. public class Solution
  11. {
  12.     public static void main(String[] args)
  13.     {
  14.         writeToConsole("Hello world!");
  15.     }
  16.  
  17.     public static void writeToConsole(String s)
  18.     {
  19.         System.out.println("printing: " + s);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement