Easy example/Jednoduchý príklad
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Hello {
static void print(String s)
{
System.out.println(s);
}
public static void main(String args[])
{
String pozdrav;
String vstup;
BufferedReader in;
in = new BufferedReader(new InputStreamReader(System.in));
try{
vstup = in.readLine(); }
catch(IOException e) {vstup="";}
pozdrav="Servus "+vstup+", dnes je " + (new Date().getDate())+"."+ (new Date().getMonth())+".";
print(pozdrav);
}
}
This entry was posted
on nedeľa, september 26th, 2010 at 13:51 and is filed under Eclipse - Java, Ostatné/Other.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.