Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package myname;
- import java.io.IOException;
- /** První pokus
- * @author hudecma1
- */
- public class MyName
- {
- /** Cteni dvou stringu ze standardniho vstupu a vycisteni.
- * @param args the command line arguments.
- * @throws IOExpection kdyz dojde k chybe.
- */
- public static void main(String[] args) throws IOException {
- StringBuilder sb = new StringBuilder();
- char c;
- while ((c = (char) System.in.read()) != '\n')
- {
- sb.append(c);
- }
- System.out.println("Nacteno: " + sb);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement