CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Java help!

Threaded View

  1. #1
    Join Date
    Aug 2009
    Posts
    52

    Java help!

    Hi i need help in debuging this error.. How can i pass the variable abbrName into this method? then append fullname into abbreviations[count-1].addFullName(fullname); then call back to constructor? or theres a better way of doing it?

    public int getAbbreviationCount(String strLine,int count){


    if(abbreviations[count-1].getAbbrName().trim().equals(abbrName.trim()))
    {
    abbreviations[count-1].addFullName(fullname);
    return count-1;
    }
    return count
    }




    Code:
    public class Abbreviation{
          private String abbrName, a;
          private String[] fullNames, b;
       
           public Abbreviation(String abbrName, String fullName ){
             this.abbrName=abbrName;
             String[] fullNames= { fullName };
             this.fullNames=fullNames;
          }
    Last edited by hugo84; October 29th, 2009 at 12:51 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
  •  





Click Here to Expand Forum to Full Width

Featured