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. hi..i did a sms sending pgm..it works without erro
View Tutorial By: Ragesh Gopal at 2011-09-02 10:02:59
2. How can i use this code to send multiple sms using
View Tutorial By: Shoaib at 2014-03-07 19:49:11
3. Hello my question is that . I want to run a audio
View Tutorial By: Bharath at 2011-08-09 04:14:53
4. realy it was a nice basic example...and better def
View Tutorial By: amit kumar at 2011-03-14 08:11:31
5. frnds i want serial communication over beaglebone
View Tutorial By: Rajneesh at 2015-04-12 11:23:16
6. Thanks sir i am understand to jdbc but who will ru
View Tutorial By: Ranjeet singh at 2012-05-04 07:40:29
7. Hello,
I got an error like (Wed Ma
View Tutorial By: narayanan at 2010-03-17 05:56:21
8. i m happy this programs thsk
View Tutorial By: jai at 2011-05-09 14:20:35
9. Your code will not execute using above main method
View Tutorial By: Gajanan Patil at 2012-05-09 04:42:29
10. gr8t man.....! i am satisfied with ur explanation
View Tutorial By: raja deepa at 2011-07-05 13:44:21