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



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

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions 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

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. rms programe
View Tutorial          By: hardik at 2008-03-28 23:06:58

2. it is very easy to understand to the learners.
View Tutorial          By: venkat at 2010-06-19 02:37:36

3. your code helps a lot.....
thanx......

View Tutorial          By: beh at 2009-08-19 06:06:20

4. If I want to read input from A PDF what should I d
View Tutorial          By: thiru at 2015-08-12 10:57:51

5. How to fix this Error.....

org.apac

View Tutorial          By: james prabhakaran at 2014-12-02 13:08:30

6. Anyone can send me the java code for send and rece
View Tutorial          By: Alvin at 2008-03-21 01:12:50

7. Sencillo y directo. No se podía explicar me
View Tutorial          By: Eligio at 2013-09-03 05:26:35

8. Thanks for your nice article.I learned a lot
View Tutorial          By: Mahyar at 2012-08-12 12:09:36

9. Thanks for the tutorial. I didn't get a lot of tra
View Tutorial          By: jordan at 2012-05-16 13:03:45

10. it is very good service.
View Tutorial          By: rajesh at 2009-11-14 02:48:18