JAVA DUPLICATION TABLE

Author Topic: JAVA DUPLICATION TABLE  (Read 21650 times)

Offline varnishakalraTopic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
JAVA DUPLICATION TABLE
« on: 08-22-2019, 00:25:30 »
public class MultiplicationTable {
    public static void main(String[] args) {
        int num = 5;
        for(int i = 1; i <= 10; ++i)
        {
            System.out.printf("%d * %d = %d \n", num, i, num * i);
        }
    }
}




is it right duplication table or not?


Offline brookeroberts7

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 1
  • Posts: 166
  • Karma: 0
Re: JAVA DUPLICATION TABLE
« Reply #1 on: 08-27-2020, 05:35:28 »
Connection connection1 = // set up connection to dbms1
Statement statement = connection1.createStatement();
ResultSet result = statement.executeQuery("select * from ............. ");

Connection connection2 =  // set up connection to dbms2
// Now I want to upload the ResultSet result into the second database
Statement statement2 = connection2.createStatement("insert into table2 " + result);
statement2.executeUpdate();
[Fitted wardrobes Sutton Coldfield]Fitted wardrobes Sutton Coldfield[/Fitted wardrobes Sutton Coldfield]california payday loans

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4055 Views
Last post 09-20-2011, 03:35:58
by Walalayo
0 Replies
1840 Views
Last post 10-13-2011, 02:12:02
by manvbf
3 Replies
8931 Views
Last post 08-19-2015, 01:48:54
by SanviMalhotra
0 Replies
1519 Views
Last post 11-14-2016, 03:19:21
by aarav
0 Replies
3327 Views
Last post 03-25-2017, 03:24:17
by beingchinmay