AP计算机科学A考试附录.pdfVIP

  • 8
  • 0
  • 约2.39万字
  • 约 16页
  • 2019-10-26 发布于湖北
  • 举报
Quick Reference ® AP Computer Science A © 2011 The College Board. Visit the College Board on the Web: . Content of Appendixes Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Java Quick Reference Appendix B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testable API Appendix C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testable Code Appendix E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . GridWorld Quick Reference Appendix G . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Index for Source Code i Appendix A Java Quick Reference Appendix A — Java Quick Reference Accessible Methods from the Java Library That May Be Included on the Exam class java.lang.Object • boolean equals(Object other) • String toString() class java.lang.Integer • Integer(int value) • int intValue() • Integer.MIN_VALUE // minimum value represented by an int or Integer • Integer.MAX_VALUE // maximum value represented by an int or Integer class java.lang.Double • Double(double value) • double doubleValue() class java.lang.String • int length() • String substring(int from, int to) // returns the substring beginning at from // and ending at to-1 • String substring(int from) // returns substring(from, length()) • int indexOf(String str) // returns the index of the first occurrence of str; //

文档评论(0)

1亿VIP精品文档

相关文档