J
Jeff
Hey
midp 2.0
J2ME Wireless Toolkit 2.2
JDK 5
When compiling the code below I get this error message:
cannot find symbol
symbol : method isWhitespace(char)
location: class java.lang.Character
if (Character.isWhitespace(e))
Here is my code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.IOException;
import java.io.*;
import java.lang.Character;
import java.util.*;
public String findspace(String data)
{
boolean found = false;
int pos = 0;
String result = new String();
char e = 'B';
while (!found)
{
if (Character.isWhitespace(e))
{
found = true;
}
result += data.charAt(pos);
pos++;
}
return result;
}
Please, give me suggestions to what I'm doing wrong (the compile error) here
Jeff
midp 2.0
J2ME Wireless Toolkit 2.2
JDK 5
When compiling the code below I get this error message:
cannot find symbol
symbol : method isWhitespace(char)
location: class java.lang.Character
if (Character.isWhitespace(e))
Here is my code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.IOException;
import java.io.*;
import java.lang.Character;
import java.util.*;
public String findspace(String data)
{
boolean found = false;
int pos = 0;
String result = new String();
char e = 'B';
while (!found)
{
if (Character.isWhitespace(e))
{
found = true;
}
result += data.charAt(pos);
pos++;
}
return result;
}
Please, give me suggestions to what I'm doing wrong (the compile error) here
Jeff