hello. plz tell me how to find < character in a string, if there is no space before it. suppose in d current string:
efherihgf<a erorifj
how to find < ? tanx alot
User Profile
Collapse
-
you can use nextInt(int) method of the java.util.Rando m class, found in java documentation. also u can find an example overthere.... -
hi. here is a way that you can read the content of a file, but before you should specify your file name
FileInputStream fis = new FileInputStream ("E:/Sahar/source codes/exam.txt");
int num = fis.available() ;
byte b[] = new byte[num];
fis.read(b);
String content = new String(b , 0 , num);
System.out.prin tln("content : "+ content);
in the 1st line, you shud write d name...Leave a comment:
-
parsing a string
hi there. i have a string that want to search it and find the "<" in it. how is it possible?
No activity results to display
Show More
Leave a comment: