HACKIS - Hacking Internet Security
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Tuyệt Kỹ Đong Giai Chân Kinh (tuyệt Kỹ cua trai)
Nhập dữ liệu từ bàn phím trong Java EmptyThu Aug 23, 2012 5:38 am by Admin

» Tuyệt kỹ cua giai
Nhập dữ liệu từ bàn phím trong Java EmptyThu Aug 23, 2012 5:36 am by Admin

» NETCAT.........
Nhập dữ liệu từ bàn phím trong Java EmptyMon Aug 13, 2012 6:35 am by Admin

» Bảo mật CSDL bằng phương pháp mã hóa.
Nhập dữ liệu từ bàn phím trong Java EmptyTue Apr 17, 2012 10:04 pm by Admin

» Hàm mã hóa MD5 bằng JavaScript
Nhập dữ liệu từ bàn phím trong Java EmptyTue Apr 17, 2012 10:03 pm by Admin

» Giá của món quà
Nhập dữ liệu từ bàn phím trong Java EmptyFri Apr 13, 2012 6:01 am by Admin

» Sẽ chỉ yêu ai?
Nhập dữ liệu từ bàn phím trong Java EmptyFri Apr 13, 2012 6:01 am by Admin

» Cách đọc bảng chữ cái!
Nhập dữ liệu từ bàn phím trong Java EmptyThu Apr 12, 2012 10:37 pm by Admin

» Gắn trojan, keylog, virus vào website, forum
Nhập dữ liệu từ bàn phím trong Java EmptyTue Apr 10, 2012 1:14 am by Admin

Affiliates
free forum


Nhập dữ liệu từ bàn phím trong Java

Go down

Nhập dữ liệu từ bàn phím trong Java Empty Nhập dữ liệu từ bàn phím trong Java

Post  Admin Sun Jun 19, 2011 11:05 am

import java.io.*;
import java.util.*;
class MyInput
{
public static int ReadInt()
{
int i=0;
InputStreamReader isr=New InputStreamReader(System.in);
BufferedReader bs=new BufferedReader(isr);
try
{
String s=br.readLine();
i=new Integer(s).intValue();
}
catch(IOException ex)
{
System.out.println(ex);
}
return i;
}
}
class TestMyInput
{
public static void main(String args[])
{
int x;
System.out.print("Nhap x = ");
x=MyInput.ReadInt();
System.out.println("Gia tri x = "+x);
}
Admin
Admin
Admin

Tổng số bài gửi : 782
Join date : 2009-08-15

https://hackis.forumvi.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum