a = br.readLine();
int i = 0 ;
int ll[];
for(i = 0;i<=a.length;i++)
{
ll[i] = Integer.parseInt(a.substring(i,i+1));
}
int i = 0 ;
int ll[];
for(i = 0;i<=a.length;i++)
{
ll[i] = Integer.parseInt(a.substring(i,i+1));
}
int []A = new int[t.length];
A[i]=t[i];
int j = 0;System.out.print ("输入第一个数:");
i = System.in.read ();
while (i != 13)
{
if (((i >= 48) && (i <= 57)))
{
a [j] Integer.parseInt ((char) i);
j ++;
}
i = System.in.read ();
}
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String a = null;
System.out.println("pls input number");
a = br.readLine();
Integer.parseInt(a);
char[] c = new char[a.length()];
for (int i = 0; i < a.length(); i++) {
c[i] = a.charAt(i);
System.out.println("c[" + i + "]= " + c[i]);
}
}
}
public class StringBuffer {
public static void main(String[] args) throws Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String a = new String();
System.out.println("pls input number");
a = br.readLine();
/*int i = 0 ;
int ll[];
for(i = 0;i<=a.length;i++)
{
ll[i] = Integer.parseInt(a.substring(i,i+1));
}*/
int i=0;
byte []t = a.getBytes();
int []A = new int[t.length];
A[i]=t[i];
for(int j=0;j<A.length;j++)
System.out.println(A[j]);
}
}
/*int i = 0 ;
int ll[];
for(i = 0;i<=a.length;i++)
{
ll[i] = Integer.parseInt(a.substring(i,i+1));
}*/
int i=0;
byte []t = a.getBytes();
int []A = new int[t.length];
A[i]=t[i];
for(int j=0;j<A.length;j++)
System.out.println(A[j]);
写成:
int[] ll = new int(a.length);
for( int i = 0;i<=a.length;i++)
{
ll[i] = Integer.parseInt(a.substring(i,i+1));
}
for(int j=0;j<ll.length;j++)
System.out.println(ll[j]);