CVS: TapestryBook/hangman1/src/hangman1 Guess.java,1.1,1.2 Lose.java,1.1,1.2

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/hangman1/src/hangman1
In directory sc8-pr-cvs1:/tmp/cvs-serv28214/hangman1/src/hangman1

Modified Files:
	Guess.java Lose.java 
Log Message:
Keep compatible with JDK 1.3.

Index: Guess.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/hangman1/src/hangman1/Guess.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Guess.java	13 Jan 2003 19:02:18 -0000	1.1
--- Guess.java	14 Jan 2003 12:56:24 -0000	1.2
***************
*** 60,64 ****
          char upper = Character.toUpperCase(_letter);
  
!         return Character.toString(upper);
      }
  
--- 60,64 ----
          char upper = Character.toUpperCase(_letter);
  
!         return new Character(upper).toString();
      }
  
***************
*** 68,72 ****
              return getAsset("dash");
  
!         return getAsset(Character.toString(_letter));
      }
  
--- 68,72 ----
              return getAsset("dash");
  
!         return getAsset(new Character(_letter).toString());
      }
  
***************
*** 117,121 ****
              return getAsset("space");
  
!         String name = Character.toString(getLetterForGuessIndex());
  
          return getAsset(name);
--- 117,121 ----
              return getAsset("space");
  
!         String name = new Character(getLetterForGuessIndex()).toString();
  
          return getAsset(name);
***************
*** 147,151 ****
          char ch = Character.toUpperCase(getLetterForGuessIndex());
  
!         return Character.toString(ch);
      }
  
--- 147,151 ----
          char ch = Character.toUpperCase(getLetterForGuessIndex());
  
!         return new Character(ch).toString();
      }
  

Index: Lose.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/hangman1/src/hangman1/Lose.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Lose.java	13 Jan 2003 19:02:24 -0000	1.1
--- Lose.java	14 Jan 2003 12:56:24 -0000	1.2
***************
*** 42,46 ****
      public IAsset getLetterImage()
      {
!         return getAsset(Character.toString(_letter));
      }
      
--- 42,48 ----
      public IAsset getLetterImage()
      {
!         String name = new Character(_letter).toString();
!         
!         return getAsset(name);
      }
      



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.