Results 1 to 4 of 4
  1. #1
    swtbellrose is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default Method that contains a string?

    How would I do this? HELP!! please:(

    registerVehicle(Vehicle aVehicle, String license) which takes a vehicle object as a parameter and the license ID of a driver who owns the vehicle and then registers the vehicle in the database by updating the vehicles list accordingly as well as storing the owner properly.

    This is what i have so far:
    Java Code:
    registerVehicle(Vehicle aVehicle, String license) {
        	this.vehicles.add(aVehicle);
        	}

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I explained the logic behind what you need to do in your other thread that you deleted all posts on. Please don't delete posts in threads, as it prevents others from learning from them. What have you tried based on the algorithm that I gave you?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    And besides, this question, taken out of context, without all the supporting information that you deleted from the other thread is meaningless to others in the forum who have no clue about the Vehicle and Driver classes. You've shot yourself in the foot by deleting those posts. Why?

  4. #4
    swtbellrose is offline Member
    Join Date
    Nov 2010
    Posts
    2
    Rep Power
    0

    Default

    the code i posted it is what i've tried i dont know what to do with the string..
    i sent you a private msg on telling you why i deleted them..

Similar Threads

  1. String split method
    By counterfox in forum New To Java
    Replies: 2
    Last Post: 11-12-2010, 11:06 PM
  2. String.trim() method help.....
    By arson09 in forum New To Java
    Replies: 6
    Last Post: 04-23-2010, 01:19 AM
  3. Please help me with Split method> String
    By javanew in forum New To Java
    Replies: 5
    Last Post: 04-02-2010, 06:15 PM
  4. Invoking method from String
    By Supamagier in forum Advanced Java
    Replies: 12
    Last Post: 05-29-2009, 09:21 AM
  5. String replace method
    By venkata.tarigopula in forum Advanced Java
    Replies: 1
    Last Post: 07-10-2007, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •