Re: Equivalent of String.fromCharCode() method in J#
From: Lars-Inge Tønnessen [VJ# MVP] (http://emailme.larsinge.com)
Date: 08/21/04
- Previous message: Joshua Drake: "RE: JBImp"
- In reply to: Bob: "Equivalent of String.fromCharCode() method in J#"
- Next in thread: Lars-Inge Tønnessen [VJ# MVP]: "Re: Equivalent of String.fromCharCode() method in J#"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 21 Aug 2004 21:57:47 +0200
I just made something... =:o)
public class J_String
{
public J_String( )
{
}
public String fromCharCode( int[] var )
{
String result = new String("");
for ( int counter = 0; counter < var.length; counter++ )
result = result.Concat( result+""+(char)var[counter] );
return result;
}
}
public class Class1
{
public Class1()
{
J_String f = new J_String();
System.out.println("->"+f.fromCharCode(new int[] {112, 108, 97, 105,
110})+"<-");
}
/** @attribute System.STAThread() */
public static void main(String[] args)
{
new Class1();
}
}
Regards,
Lars-Inge Tønnessen
www.larsinge.com
- Previous message: Joshua Drake: "RE: JBImp"
- In reply to: Bob: "Equivalent of String.fromCharCode() method in J#"
- Next in thread: Lars-Inge Tønnessen [VJ# MVP]: "Re: Equivalent of String.fromCharCode() method in J#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading