Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Re: okay, i'm getting REALLY upset

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Re: okay, i'm getting REALLY upset

    I am having issues with this, this project is due tonight. This is make or break, after making 5 different programs Im not getting this down. What I have now is...
    class GuitarString
    {
      private boolean isPlaying;
      private int tunedValue;
      private String name;
      /*
        declear the note sound variables here
      */
     
      public void GuitarString(){
        this.isPlaying = false;
        this.tunedValue = 0;
        this.name = "";
        /*
          initalize the note here
        */
      }
     public void GuitarString(String name){
        this.isPlaying = false;
        this.tunedValue = 0;
        this.name = name;
          /*
          initalize the note here
        */
      }
     public void GuitarString(String name, int tunedValue){
        this.isPlaying = false;
        this.tunedValue = tunedValue;
        this.name = name;
        /*
          initalize the note here
        */
      }
     
    //Could make another for a custom note
     
      public boolean getisPlaying(){
        return this.isPlaying;
      }
     public void setisPlaying(boolean isPlaying){
        this.isPlaying = isPlaying;
      }
     
      public int getTunedValue(){
        return this.tunedValue;
      }
     public void setTunedValue(int tunedValue){
        this.tunedValue = tunedValue;
      }
     
     public String getname(){
        return this.name;
      }
     public void setName(String name){
        this.name= name;
      }
     
     // Then add in methods to make the string functional.
     
     public void playNote(){
        setisPlaying(true);
        /*
           do playing sound stuff and set tuned value here
        */
        setisPlaying(true);
      }
     public static void main(String[] args) {
     GuitarString GuitarStrings[] = new GuitarString[6];
     
     GuitarStrings[0] = new GuitarString("E");
     GuitarStrings[1] = new GuitarString("A");
     GuitarStrings[2] = new GuitarString("D");
     GuitarStrings[3] = new GuitarString("G");
     GuitarStrings[4] = new GuitarString("B");
     GuitarStrings[5] = new GuitarString("E");
     }
    }

    If you want my other 5 let me know and I will post them, what do I do next. =\


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: okay, i'm getting REALLY upset

    Please do not hijack someone else's post. I have moved this to a new thread, and I recommend reading the Getting help link in my signature.

  3. #3
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: okay, i'm getting REALLY upset

    For a start, you have posted no description of your problem.
    How are we meant to know about this project or know what isn't working about it?
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. okay, i'm getting REALLY upset
    By msdiddyj in forum What's Wrong With My Code?
    Replies: 11
    Last Post: October 18th, 2011, 02:56 AM