User Profile

Collapse

Profile Sidebar

Collapse
dcbtux
dcbtux
Last Activity: Apr 13 '11, 12:17 AM
Joined: Feb 23 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • i want to run this program at a specified date and time

    Code:
    import java.util.*;
    class Test2 extends TimerTask{	
    	public void run(){		System.out.println(System.currentTimeMillis());
    	}
    }
    public class Test {
    	public static void main(String args[]){ 	 	  	        Date date=new Date(2011,04,12,6,33,00); 		
            Timer timer=new Timer();
    	timer.schedule(new Test2(),date);
    	}
    }
    // i want to run this program at a specified date and time
    //...
    See more | Go to post
    Last edited by Meetee; Apr 13 '11, 04:51 AM. Reason: Code tags added

  • Showing 1-10 records is done by a method of Statement Class named setMaxRows(int) . Code is as follows......
    Code:
    import java.sql.*;
    class RecordFetcher
    {
    	Connection cn=null;
    	Statement stmt=null;
    	ResultSet rs=null;
    	RecordFetcher()
    	{
    		try
    		{
    			Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    			cn=DriverManager.getConnection("jdbc:odbc:mydsn");
    ...
    See more | Go to post

    Leave a comment:


  • dcbtux
    started a topic how to show only 11 to 20 records out of 1000 records
    in Java

    how to show only 11 to 20 records out of 1000 records

    how to show only 11 to 20 records out of 1000 records through jdbc
    See more | Go to post
No activity results to display
Show More
Working...