Quantcast
Channel: android developer Feed
Viewing all articles
Browse latest Browse all 35

How do you convert CharSequence to String in Android?

$
0
0

Answer

The CharacterSequence is an interface as defined below

// Compiled from CharSequence.java (version 1.5 : 49.0, no super bit)
public abstract interface java.lang.CharSequence {
 
  // Method descriptor #4 ()I
  public abstract int length();
 
  // Method descriptor #6 (I)C
  public abstract char charAt(int arg0);
 
  // Method descriptor #8 (II)Ljava/lang/CharSequence;
  public abstract java.lang.CharSequence subSequence(int arg0, int arg1);
 
  // Method descriptor #10 ()Ljava/lang/String;
  public abstract java.lang.String toString();
}


Viewing all articles
Browse latest Browse all 35

Trending Articles