He everyone,
Does Java has a instring equavalant? I must know the number of a specified character in a string?
Grtz,
Bloged
Printable View
He everyone,
Does Java has a instring equavalant? I must know the number of a specified character in a string?
Grtz,
Bloged
have a look at the StreamTokenizer class
Thnx i will have a look!
Grtz,
Bloged
How do I loop through a file? please can you give an example?
I now use:
while strString.tt_eol
{
}
strString is a string
Thanx in advance
Grtz,
Bloged
not a problem at all :)
It is a problem for me so can you please give me an example!
Grtz,
Bloged
where st is an instance of the StreamTokenizer classCode:while (st.type != StreamTokenizer.TT_EOL && st.ttype != StreamTokenizer.TT_EOF
{
//code
st.nextToken();
}
To get the index value of a specific character in a stringQuote:
Bloged
Does Java has a instring equavalant? I must know the number of a specified character in a string?
use the public int indexOf(char c) or public int indexOf(char c, int fromIndex)