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. introduction is very clear i get wat answer i want
View Tutorial          By: kalyan at 2013-07-02 09:23:40

2. can you guys please help me in inserting values on
View Tutorial          By: Fariha at 2015-06-15 20:44:04

3. Unsigned nature of variables
View Tutorial          By: Ganesh Chowdhari at 2008-08-12 06:33:12

4. Look this framework (https://code.google.com/p/lin
View Tutorial          By: Mariane at 2013-07-04 14:27:52

5. just I am need of some of the soft copy related to
View Tutorial          By: shani at 2015-08-12 06:01:05

6. it was very useful to me
View Tutorial          By: balaji at 2012-01-09 22:50:25

7. hi.t.join();
wat would make the hi thread

View Tutorial          By: preeti at 2011-07-19 05:28:11

8. the exampe was really useful........
View Tutorial          By: smitha at 2011-03-10 21:27:55

9. is it possible to change the increment variable?
View Tutorial          By: Lundi at 2013-04-08 21:21:13

10. thanks brother
View Tutorial          By: shakeel at 2012-09-12 16:21:03