Search:

Type: Posts; User: nadirkhan

Search: Search took 0.89 seconds.

  1. Problems in connecting to a SQL Server 2008 database "Student"

    //STEP 1. Import required packages

    import java.sql.*;


    public class JDBCCreateTable {

    // JDBC driver name and database URL

    static final String JDBC_DRIVER =...
  2. Re: I am trying to connect my java application with SQL Server 2008 but I get error m

    Now I get the following exception though I have downloaded the jar file from the microsoft site and saved it in the build path for eclipse.

    java.sql.SQLException: No suitable driver found for...
  3. Re: I am trying to connect my java application with SQL Server 2008 but I get error m

    Here are the error messages that I get when I compile this code.

    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at...
  4. I am trying to connect my java application with SQL Server 2008 but I get error msgs

    //STEP 1. Import required packages

    import java.sql.*;


    public class JDBCCreateTable {

    // JDBC driver name and database URL
    // Database is called Student
  5. Code compiles fine but doesn't run Properly

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Calendar;


    public class DigitalClock extends JFrame {

    private static final long serialVersionUID = 1L;
  6. Thread: Array List

    by nadirkhan
    Replies
    6
    Views
    761

    Array List

    What is the use of using an array list rather than an array?? When you display data in an array list by just iterating through the array, it displays just like it would in an array. So then why use...
  7. Replies
    2
    Views
    441

    Dynamic Arrays

    I want to take user input into 2 arrays to store names and marks. One of string type to store names and the other of int type for the marks. I can display them using the index of the element of any...
  8. Re: I want to store names and marks in an array. I am confused what should be the cod

    I dont want to hard code it. I know that you can have 2 arrays, one of string type to store names and the other of int type for the marks and then you can display them using the index of the element...
  9. I want to store names and marks in an array. I am confused what should be the code

    import java.util.Scanner;

    public class InputArray
    {
    public static void main(String[]args)
    {
    String name = "";
    {
    Scanner ScanObj = new Scanner(System.in);
  10. I am new to Java and wish to print the square of numbers from 1 to 10. thanks

    import java.math.*;

    public class Loops {
    public static void main(String[]args)
    {
    int count=0,result=0,number = 1;
    while(count<10)
    {
    result=(int)(Math.pow(number, 2));
    result...
  11. Code wont run. I know there is no main class, but this is from a book. Is it wrong??

    import java.awt.*;

    import javax.swing.*;
    import java.awt.color.*;

    public class ColorPanel extends JPanel{

    public ColorPanel(Color backColor)
    {
    setBackground(backColor);
Results 1 to 11 of 11