/* *Copyright()1998,Oracleandoritsreserved *DONOTALTERORREMOVECOPYRIGHTNOTICES*DONOTALTERREMOVECOPYRIGHTNOTICESORTHISFILEHEADER. * *Thiscodeis *underthetermsoftheGNUGeneralPublicLicenseversion2only,as *publishedbytheFreeSoftwarejava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 2 * *Thiscodeisdistributedinthehopethatitwillbeuseful,butWITHOUT *ANY questionsjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 *FITNESSFORAPARTICULARPURPOSE.SeetheGNUGeneralPublicLicense *version2formoredetails(acopy* *accompaniedthiscode). * *YoushouldhavereceivedacopyoftheGNUGeneralPublicLicenseversion *2alongwiththiswork;ifnot,writetotheFreeSoftwareFoundation, *Inc.,51FranklinSt,FifthFloor,Boston,MA02110-1301USA. * *PleasecontactOracle,500OracleParkway,RedwoodShores,CA94065USA *orvisitwww.oracle.comifyouneedadditionalinformationorhaveany *questions(Negativemarklimitvalueshouldthrowanexception");
*/
StringReader in = new StringReader("aaaaaaaaaaaaaaa"); try {
in.mark(-1);
} catch (IllegalArgumentException e){ return;
} thrownew
Exception(" Negative marklimit value should throw an exception");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.