Home Tutorialhelp Comment wrong explanation

 
 

Comment

tanay
wrong explanation,
August 19, 2008 at 5:18 PM

You have given wrong explanation see javadocs


Returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.

Examples:

"unhappy".substring(2) returns "happy"
"Harbison".substring(3) returns "bison"
"emptiness".substring(9) returns "" (an empty string)



public String substring(int beginIndex,
int endIndex)

Returns a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of the substring is endIndex-beginIndex.

Examples:

"hamburger".substring(4, 8) returns "urge"
"smiles".substring(1, 5) returns "mile"

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

explanation - Java Beginners
java application.   Hi Friend, Please visit the following links to know about the Garbage collection. http://www.roseindia.net/java/beginners...explanation  I have create small java appication. I don't know about 

Java Beginners

example explanation - Java Beginners
example explanation  can i have some explanation regarding the program given as serialization xample....  Hi friend, import java.io..../java 

Java Beginners

explanation to your code - Java Beginners
explanation to your code  sir, I am very happy that you have responded to my doubts in no time.Thank you very much.I saw the code u sent.Can i... classes.sir i need your brief explanation on this code and also your guidance.this 

Java Beginners

What's wrong with my form? - Java Beginners
What's wrong with my form?  Dear expert, I'm having trouble with my enquiry form. Hope you can tell me where my mistake lies. Thanks. Here's my jsp code: Enquiries var objForm = new Object 

Java Beginners

Java Code Explanation
Java Code Explanation  Can you please Explain the following code : import java.util.*; class Difference { public static void main(String args[]) { int n,i,res=0,sum=0,dif 

Java Beginners

Java Code Explanation
Java Code Explanation  Can you please Explain the following code : import java.util.*; class Difference { public static void main(String args[]) { int n,i,res=0,sum=0,dif 

Java Beginners

explanation
the explanation in internet,but not very clear about it. Thank you 

Java Beginners

What's wrong with my pagination code in JSP?
What's wrong with my pagination code in JSP?  Dear experts, I've tried the following codes which I have copied from Java Ranch forum and deleted...;%@ page language="java" contentType="text/html; charset=UTF-8 

Mobile Applications Questions

wrong year
wrong year  hello I m using the following code: NSDateFormatter *df = [[NSDateFormatter alloc] init]; [df setDateFormat:@"yyyy"]; NSDate *date... wrong year..   I think u are using other calendar Check Settings 

Java Beginners

code for gettingSubstring - Java Beginners
); } } For more information on Java visit to : http://www.roseindia.net/java/beginners Thanks... : public class SubstringExample{ public static void main(String[] args 

Java Beginners

What is wrong with this line
What is wrong with this line  What is wrong with this line JOptionPane.showMessageDialog(null? for Using Lewandowski's Savings pgrm!"); from if (input.equals("exit") || input.equals("Exit")) { JOptionPane.showMessageDialog 

Java Beginners

what is wrong with this program
what is wrong with this program  import java.io.*; class Distance { int feet,inch; void read() { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine()); inch 

Java Beginners

What is wrong with my servlet?
What is wrong with my servlet?  I'd like to know which part of the code is wrong. My code is: print("code sample"); import java.util.*; import java.io.IOException; import java.io.PrintWriter; import 

Java Beginners

what is wrong in this program
what is wrong in this program  import java.io.*; class Distance { int feet; int inch; void read(int feet, int inch) { System.out.println("Enter distance in feet and inches "); feet=Integer.parseInt(ob.readLine 

Java Beginners

what is wrong in this program......
what is wrong in this program......  program to implement given inheritance import java.io.*; class Student { int rno; String name; DataInputStream ob = new DataInputStream(System.in); void getRoll 

Java Beginners

Generic Method - Java Beginners
Generic Method  I want simple java program for Generic Method with explanation 

Java Beginners

java - Java Beginners
java  hi sir. I want to know how we do JDBC connectivity in java with practical approach and explanation. And pls mention all the methods of connectivity also  Hi Friend, Please visit the following link: http 

Java Beginners

java program - Java Beginners
://www.roseindia.net/java/beginners/MatrixMultiply.shtml Thanks...java program   Pl. let me know about the keyword 'this' with at least... and store the number in the third matrix if any pictorial form or explanation 

Java Beginners

core java - Java Beginners
........... plz give clear explanation sir 

Java Beginners

huffman code give the explanation for this code
huffman code give the explanation for this code  package bitcompress; class Compress extends BitFilter { private boolean encode_flag = false; private BitFilter next_filter = null; private int value; private 

Java Beginners

huffman code give the explanation for this code
huffman code give the explanation for this code  package bitcompress; class Compress extends BitFilter { private boolean encode_flag = false; private BitFilter next_filter = null; private int value; private 

Java Beginners

java programming - Java Beginners
java programming  hello friends! My name is David.I am a new to JAVA i really need exposure in the Language.I would appreciate it if you guys can... explanation) of to my mail anytime so that i can brush up myself.My e-mail 

Java Beginners

java - Java Beginners
java  public static void Trial(File file) { RandomAccessFile input = null; whats wrong in it? String line = null; try { input = new RandomAccessFile(file, "r"); while ((line 

Java Beginners

java - Java Beginners
java  tell me the sequence of execution of statements in following code with the full explanation of the code class BoolTest{ public static void main(String args[]) boolean b; b=false; System.out.println("b 

Java Beginners

c or c++ - Java Beginners
c or c++  Write a program for a two user chess game(Users must be on different systems)? please send me this source code to my mail id with step by step explanation 

Java Beginners

java code - Java Beginners
java code  Write a program that performs flashcard testing of simple mathematical problems. Allow the user to pick the category. Repetitively... is right or wrong for each problem, and display an ongoing score. You must use 

Struts Questions

error cannot access class com.opensymphony.xwork2.ActionContext, wrong version
error cannot access class com.opensymphony.xwork2.ActionContext, wrong version  Error(1,32): cannot access class com.opensymphony.xwork2.ActionContext; class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 

Java Beginners

java - Java Beginners
This will be the answer ......  Sorry .. Last answer was wrong ... lime 

Java Beginners

Java code - Java Beginners
Java code  My Question is... In this there is Textfield... the keyboard. The alphabet is wrong or right that we have to check after clicking check... place.Will you please check it what is wrong in that. private void 

Java Beginners

multi user chat server - Java Beginners
multi user chat server  write a multi chat server and client with step by step explanation? please send me this source code to my mail id with step by step explanation 

Java Beginners

XML in JAVA - Java Beginners
in another file to get all the elements in the documents.. but my java SDK(i.e Eclipse) gives Java Null Pointer exception... can anyone tell me what could be wrong 

Java Beginners

java - Java Beginners
the factorial of a number then your code is totally wrong. It is giving 

Java Beginners

NEW IN JAVA - Java Beginners
); System.out.println("Wrong="+w1); if(r1>7){ System.out.println...++; } } System.out.println("Right="+r2); System.out.println("Wrong="+w2); if(r2>7...); System.out.println("Wrong="+w3); if(r3>7){ System.out.println("Congratulations 

SQL Question

Sql aggregate function with left join wrong output
Sql aggregate function with left join wrong output    I have three tables Stock,InwardEntry,IssueToProd. Part_no in stock is a primary key... I ma getting wrong sum values of i.InvoiceQuantity,p.IssueQuantity column 

SQL Question

Sql aggregate function with left join wrong output
Sql aggregate function with left join wrong output    I have three tables Stock,InwardEntry,IssueToProd. Part_no in stock is a primary key... I ma getting wrong sum values of i.InvoiceQuantity,p.IssueQuantity column 

SQL Question

Sql aggregate function with left join wrong output
Sql aggregate function with left join wrong output    I have three tables Stock,InwardEntry,IssueToProd. Part_no in stock is a primary key... I ma getting wrong sum values of i.InvoiceQuantity,p.IssueQuantity column 

Java Beginners

throws IOException - Java Beginners
, Most methods of IO class throw an IOException if anything goes wrong...://www.roseindia.net/java/exceptions/ http://www.roseindia.net/help/java/i/java-ioexception.shtml http://www.roseindia.net/tutorial/java/scjp/part2/question4.html Thanks 

Java Beginners

JAVA Error - Java Beginners
JAVA Error  i have made my own calculator GUI..and i want the text... variable red. is it the variable wrong or the code itself is wrong..can you give me...: http://www.roseindia.net/java/ Thanks.   Hello Just use 

Java Beginners

java+jsp - Java Beginners
java+jsp  I want to know how can I use java class in my jsp page?i'm not gettin hw it is.please help me.if u can give me the explanation with one...; Password:     --------------------------------- java file 

Java Interview Questions

Beginners in Java
Beginners in Java  Hi, I am beginners in Java, can someone help me... tutorials for beginners in Java with example? Thanks.   Hi, want to be command over Java, you should go on the link and follow the various beginners 

Java Beginners

java exercise - Java Beginners
java exercise  Pizza ordering program on Java! #write a program... ur's was wrong selection"); } else if(choice==2) { System.out.println..."); cost_of_pizza=60; } else System.out.println("Sorry ur's was wrong 

Java Beginners

User defined package problem - Java Beginners
non-subclass" is wrong. plz reply me with proper explanation of that chart may 

Java Beginners

Hello World - Java Beginners
Hello World  Java Beginner - 1st day. Looked at the Hello World......){ System.out.println("Hello World!"); } } what am I doing wrong. Am I expecting... for more information.http://www.roseindia.net/java/learn-java-in-a-day 

Java Beginners

swings - Java Beginners
Exception in thread "main" Exception in thread "main" Java Result: 1 BUILD SUCCESSFUL... it.  Hi Friend, It seems that either you have saved your java file with wrong name or you have saved your file in wrong package.Please check whether 

Java Beginners

Not sure whats wrong with my code HELP PLEASE?!?!
Not sure whats wrong with my code HELP PLEASE?!?!  I cant figure out what I am doing wrong in my code can anyone help me out??? Grades function computeGrade( ) { var hw, lab, midt, fin, avg; hw = parseFloat 

Java Beginners

java beginners - Java Beginners
the following links: http://www.roseindia.net/java/beginners/StringTokenizing.shtml http://www.roseindia.net/java/beginners/tokenizingjavasourcecode.shtml...java beginners  what is StringTokenizer? what is the funciton 

Java Beginners

String and StringBuffer - Java Beginners
information. http://www.roseindia.net/java/beginners/StringBuffer.shtml... and StringBuffer.Give an example with explanation. Thanks & Regards, VijayaBabu.M  Hi vijay Java provides the StringBuffer and String classes 

Java Beginners

Java program? - Java Beginners
Java program?  In order for an object to escape planet's.... The escape velocity varies from planet to planet.Create a Java program which... formula is getting me the wrong ans. so please help  Hi Abhishek Sisodia 

Java Beginners

java swings - Java Beginners
java swings  Hi, I need the sample code for Jtext box validation. I have the text box,if i enter the wrong input the validation error message is display the textbox right side. Please send the sample code for this... very 

Java Beginners

javaException - Java Beginners
" java.lang.OutOfMemoryError: Java heap space what does it mean?? how can i solve it. pls help me... in wrong way Thanks Rajanikant 

Java Beginners

abt java - Java Beginners
abt java   hiiiii i m new to this language i have some problem with my java code ... i working on netbeans .. i write a code for user... clickin on jar file it gives wrong out put and says certificate is tempered .. i 

JSP Servlet Questions

what is wrong with my JSP codes for updating a form?
what is wrong with my JSP codes for updating a form?  Hi experts, I have tried to emulate a code from a textbook but it doesn't work in my program. Hope someone can advise me where I had gone wrong. Tks. I've set up my 

Java Beginners

Java.. pls. - Java Beginners
Java.. pls.  Hi, sir. it compiler but when search or purchase it didt go true. Sir, can u help me sir. Please Sir.. Import java.io.*; public...; break; default: System.out.print("Wrong Info. Please Enter Again 

Java Beginners

according to me its ok but is calculating wrong values in
according to me its ok but is calculating wrong values in   program to calculate roman numbers .....i.e roman number calculator import java.util.*; import java.io.*; class romancalci { public static void main(String 

Java Beginners

login page - Java Beginners
login page  I have one login page in jsp that is login.jsp. Now i have validate user from database by another page validate.jsp. but if the user feeded wrong information then i want to print error massege on the first page 

Java Beginners

Radio Buttons - Java Beginners
this problem.please send the codes. If the questinaire page, the answer is wrong then make 

Java Beginners

java multidimensional array - Java Beginners
java multidimensional array  i have two arrays which will take numbers and no. of rows and columns fron method getArr() ifter that i want to ensure... ("Error in dimensions"); } I'm getting ArrayOutOfBound exception is any wrong 

Java Beginners

plz help me - Java Beginners
plz help me  Deepak I can write a sessioon code plz help me admin_home.jsp page is display but data is not disply plz help me what is wrong 

Java-Tutorials

Java tutorial for beginners
Java tutorials for beginners will help them learn the basic of Java... and Java class library. The tutorials that are available here for beginners... for beginners What is Programming? What is Java 

Java Beginners

Add to cart in jsp - Java Beginners
Add to cart in jsp  hye everyone.I would like to ask is it there is any source code in jsp for user to add to cart more than 1 item and I kinda want to know the explanation about it.thanks in advanced  hye roseindia 

Java Beginners

Java - Java Beginners
Java  What could be wrong with this code please import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.border.*; class Billing extends JFrame{ JLabel l1,l2,l3,l4,l5,l6,lPhoto,lN 

Java Beginners

multiple inheritance - Java Beginners
multiple inheritance  Why java does not support Multiple Inheritance?  First of all the question is wrong the correct one is......... Q)why java classes does not support Multiple Inheritance? JAVA CLASSES ONLY 

Java Beginners

j2me with xml - Java Beginners
bin.EventList 2- Class loading error: Wrong name.... Build failed i follow all 

Java Beginners

Javascript validation - Java Beginners
true; alert('Selected file is of the wrong type.Select another one 

Java Beginners

OOP - Java Beginners
. This is my code.Though I know most of it is wrong. import java.util.*; public 

Java Beginners

Java for beginners
Java for beginners  Java for beginners Which is the best resource... Java video tutorial for beginners. Thanks   Hi, Here are the best resources for Learning Java for beginners: Java Video tutorial Java tutorials 

Java Beginners

login authentication - Java Beginners
and java bean. cud u pls help me. here is the bean and jsp code samples. after giving user name and pwd in the jsp page, though it is wrong the jsp page shows to successloging java bean code -------------- public void 

Java Beginners

Java Memory Leak - Java Beginners
Java Memory Leak  I am having a memory leak in my java version of the game Snake. I have narrowed the exact step of when the program memory... , currentSize.height, null); startingBackground (spelled wrong in my code 

Java Beginners

java beginners doubt!
java beginners doubt!  How to write clone()in java strings 

Java Beginners

programming - Java Beginners
programming for java beginners  How to start programming for java beginners 

Java Beginners

Java for beginners - Java Beginners
://www.roseindia.net/java/beginners/index.shtml Thanks...Java for beginners  Hi! I would like to ask you the easiest way to understand java as a beginner? Do i need to read books in advance 

Java Beginners

Thread and Process - Java Beginners
Thread and Process  Dear Deepak Sir, What is the diffrence between Thread and Process.Give an example with explanation. Thnaks & Regards...://www.roseindia.net/java 

Java Beginners

javascript cookie - Java Beginners
javascript cookie  hi all, i wanted to know how to set expire attribute of cookie in javascript. heres the code : document.cookie = 'cookie2=Second_cookie'; expires=Mon, 17-Aug-09 04:42:00 GMT; path="/"'; whats wrong 

Java Beginners

code problem - Java Beginners
; } else System.out.println("Wrong, try again 

Java Beginners

stack - Java Beginners
on Stack visit to : Thanks   http://www.roseindia.net/java/example/java/util/ Thanks  I think there is bit wrong in the above answer 

Java Beginners

Good tutorials for beginners in Java
Good tutorials for beginners in Java   Hi, I am beginners in Java... in details about good tutorials for beginners in Java with example? Thanks.   ... the various beginners tutorials related to Java http://www.roseindia.net/java/beginners 

Java Beginners

Java Compiler Error - Java Beginners
Java Compiler Error  I get this error when i compile this Java inheritance OOP. What I'm i doing wrong. F:\Java\WorkerDemo.java:9: cannot find symbol symbol : constructor ProductionWorker(java.lang.String) location: class 

Java Beginners

email extractor - Java Beginners
]$"; /*** * Explanation of RE: email address starts with alpha numeric characters,has 

Java Beginners

error detection - Java Beginners
error detection   Hi Amardeep and all friends out there could you pls tell me whats wrong with my codes shown down on this page, i tried to create a queue using a linkedlist, but when i tried to run them they are giving 

Java Beginners

PaySlip - Java Beginners
//if wrong show error message //else Vector allEmployees 

Java Beginners

java compilation error - Java Beginners
java compilation error  Hello, I sent a previous message regarding... because I figured out I had the codes typed in wrong. After I corrected... in java graphics to be able to save it as a file if so, how can I do 

Java Beginners

record management application - Java Beginners
send me these source codes with step by step explanation to my mail id.Please 

Java Beginners

Java Compilation error - Java Beginners
Java Compilation error  What's wrong with this: public enum RockPaperScissors { ROCK ("Rock crushes scissors."), PAPER ("Paper covers rock."), SCISSORS ("Scissors cuts paper."); private String mgs; private 

Java Beginners

Java programming 1 - Java Beginners
Java programming 1  hi there, Sir! Can u help me check where my program gone wrong? here are my coding =D, hope to get reply from u guys soon..^^ import javax.swing.JOptionPane; class TestMark { private static void 

Java Beginners

SUBSET ARRAY. - Java Beginners
in the end of the program. Please Do check where im wrong and how can i do 

Java Beginners

java plus database - Java Beginners
java plus database  kathmandu Sports Club In order to have more... (if any). If the user enters a wrong sport-id, the system must print an error.... Module diagram 4. Java-program   Hi friend, Code to solve 

Java Beginners

Java Final Project - Java Beginners
Java Final Project  I am having a real hard time with this java assignment. Any help or tips will be great!!! This is the requirements: Final... in the Message Area at the bottom. The Customer Display will give a brief explanation 

Java Beginners

Java - Java Beginners
Java  how to declare arrays   Hi Friend, Please visit the following link: http://www.roseindia.net/java/beginners/array.shtml Thanks 

Java Beginners

an error - Java Beginners
an error  Hi everyone ? pls i tried to run my following codes but i detect an error after trying to compile and run them,howevre i can't find out where i made a mistake,thus pls try to find it and help me where i have gone wrong 

Java Beginners

how to Create a media player - Java Beginners
how to Create a media player  hi great friends my name is David.please i need a source code with detailed explanation on how to create a media player mp3 format.I need this urgently please!my E-mail address 

General

Java Next()
Java Next()       In this section, you will get the detailed explanation about the next() method... in Java. The description of the code is given below for the usage of the method 

General

Java nextElement()
Java nextElement()       In this section, you will get the detailed explanation about the nextElement... of interface Enumeration in Java. The description of the code is given below 

General

Java hasMoreElement()
Java hasMoreElement()       In this section, you will get the detailed explanation about...() method of interface Enumeration in Java. The description of the code is given 

Java Beginners

Java compilation error - Java Beginners
Java compilation error  I place the following code in to my program... - fullFileName.append(vendorID) vendorID is a parameter. What am I doing wrong. public void... in qshell - javac -classpath /home/java/build/ ServiceLevelReport1.java */ public 

Java Beginners

beginners questions
beginners questions  I need all the possible Java beginners questions to prepare for an Interview 

Java Beginners

else if (selection = * 'M'); - Java Beginners
doing wrong :( public class Calculate { public static void main(String 

Java Beginners

javascript-email validation - Java Beginners
javascript-email validation  give the detail explanation for this code: if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr) { alert("Invalid E-mail ID") return false } if (str.indexOf(dot)==-1 

Java Beginners

basic java - Java Beginners
basic java  oops concept in java ?  Hi Friend, Please visit the following links: http://www.roseindia.net/java/beginners/oop-in-java.shtml http://www.roseindia.net/java/learn-java-in-a-day/oops.shtml Thanks 

Java Beginners

GUI - Java Beginners
GUI  whats wrong with my code? import javax.swing.*; import java.awt.event.*; import java.awt.*; class prog3 extends JFrame { JLabel lbl,lbl1,lbl2,lbl3,lbl4,lbl5,lbl6,lbl7,lb18,lbl9,lbl10,lbl11,lbl12; JTextField 

Java Beginners

GUI - Java Beginners
GUI  whats wrong with my code failed to compile // Department interface //import java.sql.*; import javax.swing.*; import java.awt.event.*; import java.awt.*; class EmployeeInformation extends JFrame implements 

Advertisements Advertisements
 

 

 

DMCA.com