Results 1 to 3 of 3
  1. #1
    Krony is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default Confused as avaj

    Hey guys im new here. im at unviersity studying computer science. now we are learning...not learning just looking at java. which isnt teaching me anything. but they want me to program a little program but im having trouble with some little things.

    here is a piece of code i have

    public setPrice(int setPrice){
    price = setPrice;
    is that wrong?
    and i have this for a different part
    public void setPrice(){
    price = 11;
    they should work shouldnt they?

    also i dont understand what a method name is or type or parameter.

    what is the method name? name of the method parameter? type of the method parameter ane what is the return type of this?

    public void setCars(int carSet)
    cars = carSet;

    isnt is
    1, setCars
    2, carSet
    3, int
    4, cars


    hope to here from you soon. our teacher doesnt really teach us anything

  2. #2
    tashimoto is offline Member
    Join Date
    Sep 2010
    Oregon, usa
    Rep Power


    A quick search online for "java tutorial" will bring up may websites that will teach the basics of Java.

    Here are a few I found:
    Trail: Learning the Java Language (The Java™ Tutorials)
    Java - Quick Reference Guide
    Learn Java online with Java Beginner Tutorial

    I hope this helps! :)

  3. #3
    Krony is offline Member
    Join Date
    Oct 2010
    Rep Power


    cool i will look into it 2morow, im quite sleepy and its been p***ing me off so :(.
    but yea i will get back to you on those sites

Similar Threads

  1. I am confused
    By prof.deedee in forum New To Java
    Replies: 6
    Last Post: 10-30-2009, 11:32 PM
  2. Very confused Plz help!!
    By ratb0y in forum NetBeans
    Replies: 0
    Last Post: 02-14-2009, 04:34 PM
  3. Confused
    By coldfire in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 01:00 PM
  4. confused
    By updev in forum AWT / Swing
    Replies: 6
    Last Post: 11-14-2008, 03:33 PM
  5. what does it mean:confused:
    By sivasayanth in forum New To Java
    Replies: 2
    Last Post: 01-12-2008, 04:52 AM

Posting Permissions

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