Java prob index out of bounds? - index of bound jpg
There is one exception OUTPUT INDEX REQUIRED: -1
Type I, if the character formats.
import java.io. *;
import java.net .*;
Public lecture class (
public static void main (String [] args) throws Exception (
Input array string [] = new String [20];
Output array string [] = new String [20];
InputStreamReader isr = new InputStreamReader (System.in);
BufferedReader read = new BufferedReader (ISR);
System.out.println ( "Enter the text:");
Readline read.readLine = String ();
StringTokenizer token =) new StringTokenizer (readline ";
int i = 0;
while (token.hasMoreTokens () & & i \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; 20) (
input [i] = token.nextToken ();
i + +;
)
int len = 0;
len = i;
while (i> 0) (
output [i] = input array [len-1];
i + +;
- len;
) / / End while
) / / End of main
No comments:
Post a Comment