public class Class1 { public static void main (String[] args){ String s = GetString("Enter your name: "); System.out.print(s); } public static String GetString (String Message){ System.out.print(Message); BufferedReader nn=new BufferedReader(new InputStreamReader(System.in)); String str1=null; try { str1=nn.readLine().toString(); } catch (IOException e) { System.exit(1); } return str1; } }
- ۹۳/۰۸/۱۰