I have an String and I am looking for a subString in this String which starts with "what is new?" and ends with "Todays last news". I know that I can use string.contains(substring) but I don't know...
Type: Posts; User: nasi
I have an String and I am looking for a subString in this String which starts with "what is new?" and ends with "Todays last news". I know that I can use string.contains(substring) but I don't know...
Thanks. I know these methods. the problem is that
String Str = new String("href="http://en.wikipedia.org/wiki/Primary_care" l="l"");
doesn't work and generates errors because of multiple...
How should I find
href="http://en.wikipedia.org/wiki/Primary_care" l="l"
in the following String?
I have an html file and I am trying to find something like "<html>
<head>
</head>
<body>
<a href="http://en.wikipedia.org/wiki/Net_present_value" class="l">Net <em>present</em>
...
would you please tell me what is O(n)
Is there any straight way to find an string in a file? I know how to read a file line by line and see if the string exits there or not, but I am looking for a shorter way.:confused: