User Profile

Collapse

Profile Sidebar

Collapse
saharf
saharf
Last Activity: Sep 16 '07, 05:58 AM
Joined: Sep 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • saharf
    started a topic converting strings
    in Java

    converting strings

    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
    See more | Go to post

  • saharf
    replied to random number generator
    in Java
    you can use nextInt(int) method of the java.util.Rando m class, found in java documentation. also u can find an example overthere....
    See more | Go to post

    Leave a comment:


  • saharf
    replied to how to read files
    in Java
    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...
    See more | Go to post

    Leave a comment:


  • saharf
    started a topic parsing a string

    parsing a string

    hi there. i have a string that want to search it and find the "<" in it. how is it possible?
    See more | Go to post
No activity results to display
Show More
Working...