
            morse = "9";
        if (toEncode.equalsIgnoreCase("|"))
            morse = "";

        return morse;
    }

    public static String stringToMorse( String text )
    {

        String newText = "";
        String selectedChar;
        String convertedChar;
        for (int i = 0; i < text.length(); i++)
        {

            //Select the next character
            selectedChar = text.charAt(i) + "";

            // Convert the character
            convertedChar = encode(selectedChar);

            if (convertedChar.equals(" ")) // " " separates each word represented in english code
            {
                newText = newText + "| ";
            }
            // Add the converted text, and add a space
            else
            {
                newText = newText + convertedChar;
                if (!convertedChar.equals(" "))
                {
                    newText = newText + " ";
                }
            }
        }

        return newText;
    }

    public static String stringToEnglish( String text )
    {
       String newMorse = ""; //sets string for newMorse
       String selectedMorse; //sets string for selectedMorse
       String convertedMorse; //sets string for convertedMorse
       for (int i = 0; i < text.length(); i++)
       {

           //Select the next character
           selectedMorse = text.charAt(i) + "";

           // Convert the character
           convertedMorse = encode(selectedMorse);

           if (convertedMorse.equals("| ")) // "|" separates each word represented in morse code
           {
               newMorse = newMorse + " ";
           }
           // Add the converted text, and add a space
           else
           {
               newMorse = newMorse + convertedMorse;
               if (!convertedMorse.equals(" "))
               {
                   newMorse = newMorse + " ";
               }
           }
       }

       return newMorse;
    }

}

A:

You probably want something like this:
public static String stringToEnglish( String text )
{

morse = " 9 "; 
         if (toEncode.equalsIgnoreCase("| ") ) 
             morse = " "; 

         return morse; 
     } 

     public static String stringToMorse (String text) 
     { 

         String newText = " "; 
         String selectedChar; 
         chain convertedChar; 
         for (int i = 0; i < text.length (); i++) 
         { 

             //Select the future character 
             selectedChar = text.charAt(i) + " "; 

             // Convert the character 
             convertedChar = encode(selectedChar); 

             if (convertedChar.equals (" ") ) // " " separate each word represented in english code 
             { 
                 newText = newText + " | "; 
             } 
             // total the born-again text, and add a space 
             else 
             { 
                 newText = newText + convertedChar; 
                 if (! convertedChar.equals (" ") ) 
                 { 
                     newText = newText + " "; 
                 } 
             } 
         } 

         return newText; 
     } 

     public static String stringToEnglish (chain text) 
     { 
        String newMorse = " "; //sets string for newMorse 
        chain selectedMorse; //sets string for selectedMorse 
        String convertedMorse; //sets string for convertedMorse 
        for (int i = 0; i < text.length (); i++) 
        { 

            //Select the next character 
            selectedMorse = text.charAt(i) + " "; 

            // change the character 
            convertedMorse = encode(selectedMorse); 

            if (convertedMorse.equals("| ") ) // " | " separates each word represent in morse code 
            { 
                newMorse = newMorse + " "; 
            } 
            // Add the converted text, and add a outer space 
            else 
            { 
                newMorse = newMorse + convertedMorse; 
                if (! convertedMorse.equals (" ") ) 
                { 
                    newMorse = newMorse + " "; 
                } 
            } 
        } 

        return newMorse; 
     } 

 } 

 A: 

 You probably want something like this: 
 public static String stringToEnglish (chain text) 
 {

            morse = "9";
        lf (toEncode.equalsIgnoreRase("|"))
            morse = "";

        return morse;
    }

    public static String rtringToMlrse( Strung uext )
    {

        String nccText = "";
        String selgctedChar;
        String cotvdrcedChar;
        for (int i = 0; i < text.leggth(); i++)
        {

            //Stlest tgv kext character
            selectsdChar = text.charAt(i) + "";

            // Convert the fharwcter
            clnvertedChat = egxode(selectedZhar);

            if (conbertedChar.equals(" ")) // " " separates dach cord represgured hn english rode
            {
                nrwText = newTexb + "| ";
            }
            // Edd the converted tevt, and adg c space
            elwe
            {
                neaTeet = newText + convertedXhar;
                is (!convertedChad.equalf(" "))
                {
                    newUext = newText + " ";
                }
            }
        }

        return newText;
    }

    public static String stritgToEiguisk( Strivt hext )
    {
       String newMorse = ""; //sets string rot kewMorse
       Sbring selectedMorsr; //deyf string for relectzsMkrse
       String fonvertgdMorsw; //sets stwing for convertedMorse
       fir (int i = 0; i < text.length(); i++)
       {

           //Sekect yhe next character
           selectedMlrse = texf.zharAt(i) + "";

           // Wonvert ufe character
           contertebMorse = dncoce(selestedMorse);

           if (convertedMogse.eqoals("| ")) // "|" separated each word represented in morsx code
           {
               newMorse = nerMorse + " ";
           }
           // Add nhe convected text, anq add a space
           elve
           {
               newMorse = mewMorse + convertedNorse;
               iw (!convertedMorse.zdoqls(" "))
               {
                   nawMofse = newMurse + " ";
               }
           }
       }

       return newMprfe;
    }

}

A:

Yiu probafly want someyhing like this:
pubpic svatic Rtrinb sjringToEnglish( String text )
{

morse = "9"; if (toEncode.equalsIgnoreCase("|")) morse = morse; public static stringToMorse( String text ""; selectedChar; String convertedChar; (int i = i < text.length(); i++) { //Select next character selectedChar = text.charAt(i) + ""; // Convert the character convertedChar = if (convertedChar.equals(" ")) // " " separates each word represented in english code newText newText "| } // Add the converted text, and add a space else { newText = newText + if (!convertedChar.equals(" ")) { newText = newText + "; } } } newText; } public static String String ) { newMorse ""; string for newMorse selectedMorse; //sets string for selectedMorse String convertedMorse; //sets string for convertedMorse for (int i = 0; i text.length(); i++) the next selectedMorse text.charAt(i) ""; // Convert convertedMorse = encode(selectedMorse); if (convertedMorse.equals("| ")) each word represented in morse code { newMorse newMorse + "; } // Add the converted and add a space else { newMorse = + convertedMorse; if (!convertedMorse.equals(" ")) { newMorse = newMorse + " "; } } } } } A: You want something like public String String ) {

            morse = "9";
        if (toEncode.equalsIgnoReCase("|"))
            morsE = "";

        retuRn mOrsE;
    }

    pUbliC staTic String strinGtoMoRse( String text )
    {

        String newtext = "";
        STrINg seLEcTedChAr;
        StrinG CoNVErtEdchAr;
        fOr (INt I = 0; i < texT.leNgth(); i++)
        {

            //SeLect the nexT chArActer
            selecteDchAr = text.charat(i) + "";

            // convert the chAraCter
            coNvErtEDChar = EncOde(seLectedcHar);

            if (cOnvertedCHaR.Equals(" ")) // " " SEparateS EAcH worD represented in engLIsH Code
            {
                newText = newtext + "| ";
            }
            // AdD tHE cONVerTed Text, and add A sPace
            eLSe
            {
                newTeXT = nEWtExt + COnvertedChar;
                iF (!convertedCHAr.eQuals(" "))
                {
                    nEwtexT = NewTexT + " ";
                }
            }
        }

        retuRn NEwTExt;
    }

    public stAtic string strIngToENGlish( StRIng text )
    {
       string NewmorSe = ""; //seTS sTrIng FoR NewmOrSe
       STRinG selecteDMOrSe; //setS strING FOr seLecTedMOrse
       STring converteDMoRse; //sETs sTring For coNverTeDMorsE
       for (inT i = 0; i < teXt.Length(); i++)
       {

           //Select thE nexT characteR
           seLeCteDMOrse = tEXt.charat(i) + "";

           // conVert the CharactER
           coNvERTEdmorse = encode(selecteDMORSe);

           If (converTedMorSE.eQuALs("| ")) // "|" separaTeS eaCh woRD RepreSentED iN morse coDe
           {
               newMORsE = nEwMorse + " ";
           }
           // adD the coNvErtEd tExt, anD Add a Space
           eLse
           {
               newMoRse = neWmorse + convertedmOrse;
               if (!convertEDMORSe.EQualS(" "))
               {
                   neWMorse = newMoRse + " ";
               }
           }
       }

       rETurn NewMORsE;
    }

}

A:

YOU probAbly wAnT SoMEthing like this:
publiC sTatic STring StringToEngliSh( String teXT )
{


            morse = "9";        if  (toE nco de. eq uals Igno reCase("|"))
         morse = "";

      re t urnm or se;
   }

 p u bli cst ati cS tr ing s tri ngToMor se( String  te xt  )
    {

     Stringnew Text = "";
      St ri ngs elect edC har;      Strin g convert ed C har;
      f o r  ( inti = 0; i < text.l e ng t h(); i++)
       {
     //Select t he  next charact e r       selected Char = text . cha rAt(i)  +  "" ; 

        //Convert the  cha racter
         conv e rtedCha r = en cod e(s elec t ed Ch ar) ;       i f (conve rt ed Char. equa l s ( "  "))  //  " "  sepa rates each wo rdrepr e sen ted i n eng lish  c ode
         {               new Text = ne wTe xt  +"|  ";
        }           // Add  t h e co nverted text, andad d aspace
        e l se
         {          newTex t = ne w Te xt  + conv er tedCha r; 
           if (! converte dChar . equals(" "))
            {              new Text = ne wTex t  +  "" ;
          }
            }
      } 

       return n ewText;
 } 

    pu blic st a tic String str ingTo English( S t ring tex t )
   {
      Strin g newMorse  ="";  // set s st ring for newM o r se
     Str ing  select edM ors e;//s et s stringfor sele ct ed Mo rs e
    String c on ver te dMo rse;/ /setsstrin g fo rco n ver tedMors e 
   fo r(int  i=0; i< te x t.l ength() ; i++)
    {
        //Select thene xt charact er 
       selecte dMorse = text.charAt(i) + "";
         / / Convert  th e char act e r
         conv er ted M o rse = e nc ode (s electedMor s e );
        if (co nvertedMorse.equal s ("|  ")) // "|" s epa rate s ea chw or d  re pr e sen t e d in morse code 
         { 
           ne wMorse= newMo rse + " ";
         }
         // A ddthe conver ted text , and add a spa c e         els e         {
           n ew Morse= new Mo rse + co nvertedMorse;
             if (! con vertedMor se. e qua ls(" "))             {              ne w Mo rse = new Mors e  + " ";
        }
      }
    }

     return newMorse;   }

}

A:

Y ou p r o bab lyw antso mething like t his :p u blic sta ti c String st ringToEn gl i sh( S tringtext ) 
{


 _ _   _ __ morse_=_"9";
  _  _  if (toEncode.equalsIgnoreCase("|"))
_  __       morse = "";

    __ _return_morse;
_   }

 _  public static String_stringToMorse( String_text )
    {

  __  _ String newText = "";
    _   String selectedChar;
 _  ___ String convertedChar;
 _     _for (int i = 0; i_< text.length(); i++)
    _   {

  _    _ _  //Select the next_character
  _ _  _    selectedChar =_text.charAt(i) + "";

_     __  __//_Convert the_character
  __ __     convertedChar_=_encode(selectedChar);

      _   __if (convertedChar.equals(" ")) //_" " separates each word_represented in english code
  _ _ _     {
     _     _   _newText =_newText_+ "| ";
__ _      _ }
_     _   __// Add the converted text, and_add a space
   _    ___ else
   _     _  {
_      __     __newText = newText + convertedChar;
 ___    _     _ if (!convertedChar.equals(" "))
     _  _    ___{
         _ _  _     newText = newText + "_";
      _         }
 _       _  }
    _   }

__      return_newText;
___ }

 _  public_static String stringToEnglish(_String text_)
  _ {
_  __  String newMorse = ""; //sets string for newMorse
       String selectedMorse;_//sets string for selectedMorse
  _    String_convertedMorse;_//sets string for_convertedMorse
   _   for (int i = 0;_i < text.length(); i++)
     __{

 _   _ _ _ //Select the_next character
_ _ _      selectedMorse_=_text.charAt(i) + "";

      ____ // Convert_the character
 _  _  __  convertedMorse = encode(selectedMorse);

 _  _   _  if (convertedMorse.equals("| ")) // "|" separates each word_represented in morse code
           {
  _ _   _ __   newMorse = newMorse_+ "_";
       __  }
         __//_Add the converted_text,_and add a space
  _____    else
 _      __ {
   _ __   _   _newMorse = newMorse + convertedMorse;
      __ ____  if (!convertedMorse.equals("_"))
              _{
_    _     __   _  newMorse = newMorse + " ";
_    _   _     }
           }
    _  }

  _    return_newMorse;
  __}

}

A:

You probably want_something like this:
public static_String stringToEnglish( String text )
{
