Comment on Tutorial - indexOf( ) and lastIndexOf( ) in Java By Hong
Comment Added by : arya
Comment Added at : 2012-11-07 08:37:59
Comment on Tutorial : indexOf( ) and lastIndexOf( ) in Java By Hong
import java.io.*;
class lastindexof
{
public static void main(String argv[]) throws IOException
{
String mystr;
BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
System.out.print("enter the string");
mystr=bf.readLine();
System.out.println(" character at position is=" +mystr.lastIndexOf());
}
}
why this program always showing me cannot find symbol error
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. This is the best example for beginners. After read
View Tutorial By: BB at 2014-05-20 05:24:09
2. It's very useful to j2me beginners
View Tutorial By: Naresh Padam at 2009-01-05 05:52:53
3. imgView.setBackgroundResource(R.drawable.ani); i g
View Tutorial By: mamu at 2012-10-18 14:41:31
4. nice one.. i lik dis page... very informative for
View Tutorial By: lokesh at 2013-01-10 09:06:22
5. nice
View Tutorial By: udhay at 2011-04-01 02:48:25
6. Highly appreciatable.Excellent Docs.
View Tutorial By: Debi P Naik at 2010-05-04 05:55:45
7. please try to elaborate the explanation with examp
View Tutorial By: bhavitha at 2014-02-21 06:09:12
8. i've run d program and its works
View Tutorial By: okeaghala nneka at 2012-03-31 10:58:13
9. Thank you, this tutorial is well-written and made
View Tutorial By: Adrien Tétar at 2012-10-28 19:01:57
10. good
View Tutorial By: qwerty at 2014-02-14 07:37:08