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
Related Tutorials
Java program to get location meta data from an image
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
Archived Comments
1. 3. Write a program that will continuously ask for
View Tutorial By: basil at 2011-08-04 13:00:30
2. A very good example to kickstart my preparation on
View Tutorial By: Javaenthu at 2013-07-28 06:35:44
3. Please send me the multithreading chat application
View Tutorial By: Vaibhav at 2010-06-23 23:58:43
4. simple and exelent programs
View Tutorial By: prasad at 2012-08-29 00:05:04
5. It is the same as #include
View Tutorial By: Ballu at 2011-07-04 06:42:55
6. insert a value in excel is not a problem but inser
View Tutorial By: durga at 2010-03-05 23:08:02
7. Can you explain when the user input through the ab
View Tutorial By: mujmil at 2008-02-11 18:46:00
8. Hi I am developing a code for data transfer from
View Tutorial By: Rajavel at 2014-03-21 14:17:54
9. hi, srinivas ... i too was having the same problem
View Tutorial By: Ashish at 2009-04-07 06:57:31
10. How could i read a file from my ftp server . sugge
View Tutorial By: Dinshaw at 2015-02-06 07:22:03