Thursday, December 10, 2009

Connect2Computer

Do u want 2 be sharing files&document btw d 2 pc without internet or u want d 2 pc to be on internet? if its sharing ur documents,file&printer without internet btw d 2pc then u must get a cross-cable. But if u want d 2 pc on internet then u hv to configure router so tht it serve as ur gateway, by setting ip given by ur ISP as ur default gateway&create and ip for d 2 pc. for example
COMPUTER 1
IP 192.168.1.2
SUBNET-MASK 255.255.255.0
DEFAULT GATEWAY 192.168.1.1


COMPUTER 2
IP 192.168.1.1
SUBNET-MASK 255.255.255.0
DEFAULT GATEWAY 192.168.1.1

I hope its clear enough

JavaTime

java.util.Date d2=new java.util.Date(System.currentTimeMillis());

simpleDateFormat=new java.text.SimpleDateFormat("dd MMM yyyy HH:mm:ss z");

date = simpleDateFormat.format(d2);

System.out.println("date2>>>>>>>>"+date);


Timestamp t = new Timestamp( simpleDateFormat.parse(d2.toGMTString()).getTime() );


System.out.println("TS = " + t);

http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
http://www.java2s.com/Code/Java/Database-SQL-JDBC/Timestampparse.htm