User Profile

Collapse

Profile Sidebar

Collapse
redashley
redashley
Last Activity: May 15 '07, 05:56 PM
Joined: Apr 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • redashley
    replied to help in SQL and PreparedStatement (error)
    in Java
    I'm not to sure if we can use Prepared statements.

    I did some corrections and got rid of the headings and now I get this error message

    Error - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''David', 'Wie', '1', '2','3','4','5' ,'6','7','8','9 ' where empid = '234DW'' at line 1


    Thanks for the help so far.
    ...
    See more | Go to post

    Leave a comment:


  • redashley
    replied to help in SQL and PreparedStatement (error)
    in Java
    Yes not to sure what it means, but I have another class section where I add new info (data) and it works just fine...
    I don't know if I have enought time to learn PreparedStateme nts this is due in a day...

    red
    PS Not to sure if the inst. wants PreparedStateme nts as well?...
    See more | Go to post

    Leave a comment:


  • redashley
    replied to help in SQL and PreparedStatement (error)
    in Java
    Thanks Jos for the help...
    But I did away with the Prestatement.
    Found some mistakes in my coding.
    I having troubles with this part thou.
    I get this error which is pointer...

    Error - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'name= 'lkasdj', Street= '3437', City 'Fullerton', State'CA', Zip = '3', Home Pho' at line 1....
    See more | Go to post

    Leave a comment:


  • redashley
    replied to ArrayList and Generics
    in Java
    Thanks r035198x for the help. I know there well be more Question for you.
    See more | Go to post

    Leave a comment:


  • redashley
    replied to ArrayList and Generics
    in Java
    this being the index postion I mean this is where the object will be stored in the Arraylist.

    red...
    See more | Go to post

    Leave a comment:


  • redashley
    replied to ArrayList and Generics
    in Java
    Opps...
    Code:
    class BankInfo{
    String BankId;
    String Fname;
    String Lname;
    }
    	/*
    	 * Mutator Methods if any
    	 */
    	/*
    	 * accessors make info available if any.
    	 */
    //create my arraylist.
    public class BankStatement{
    ArrayList<BankInfo> list = new ArrayList<BankInfo>();
    }
    So to add object into the Arraylist I would do somthing like this....
    See more | Go to post

    Leave a comment:


  • redashley
    replied to ArrayList and Generics
    in Java
    So if I have a class BankStatement

    Code:
    class BankStatement{
    String BankId;
    String Fname;
    String Lname;
    }
    	/*
    	 * Mutator Methods if any
    	 */
    	/*
    	 * accessors make info available if any.
    	 */
    //create my arraylist.
    public class BankStatement{
    ArrayList<BankStatement> list = new ArrayList<BankStatement>();
    }
    Is that...
    See more | Go to post

    Leave a comment:


  • redashley
    started a topic ArrayList and Generics
    in Java

    ArrayList and Generics

    Hello Everyone.
    I have some question to ask you I have read your info and have read a book call Big Java and I still lost.
    1. I have a Class called BankStatement and when I'm create a Arraylist.
    Arraylist <BankStatemen t> bank = New Arraylist <BankStatemen t>
    is <BankStatemen t> the Class BankStatement.
    2. How do I inunate BankStatement can can if be null, and how do I do this and where do I do this....
    See more | Go to post
No activity results to display
Show More
Working...