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. if the number is for exemple 00025478 it return a
View Tutorial          By: ahmed at 2015-02-11 12:02:45

2. Dear Sir,

I have done my B.E Degree

View Tutorial          By: amit at 2012-02-03 11:07:35

3. i want a java code to make a GUI in netbeans and s
View Tutorial          By: siddharth at 2012-03-17 09:59:59

4. could you please send me a complete appointment re
View Tutorial          By: Jaylon aron at 2010-02-21 02:22:57

5. good explanation,
Thanks

View Tutorial          By: venkatesh at 2012-01-04 08:43:48

6. hi,
How to create certificate from https://

View Tutorial          By: CN Balu Ramesh at 2011-07-19 08:38:31

7. Can anybody help me to send the code for email sen
View Tutorial          By: satendra at 2010-03-23 02:46:18

8. its a nice site bcoz it gives a bright IDEA about
View Tutorial          By: surya santhan at 2012-07-11 16:28:06

9. Nice post. I am learning so much things from your
View Tutorial          By: Umesh Kumar at 2012-03-15 11:16:24

10. this site is good, can anyone plz suggest me how t
View Tutorial          By: Prithvi at 2008-08-27 01:09:56