1、找到java的安装路径,我拿我自己的安装路径举例:
2、我想查找String类的使用方法,首先你要知道String所属包名,String是java.lang.String,一下是查看帮助文档的路径:

C:\Program Files\Java\jdk1.7.0_67\src.zip\java\lang\String.java

找到注释:

/*** The <code>String</code> class represents character strings. All* string literals in Java programs, such as <code>"abc"</code>, are* implemented as instances of this class.* <p>* Strings are constant; their values cannot be changed after they* are created. String buffers support mutable strings.* Because String objects are immutable they can be shared. For example:* <p><blockquote><pre>*     String str = "abc";* </pre></blockquote><p>* is equivalent to:* <p><blockquote><pre>*     char data[] = {'a', 'b', 'c'};*     String str = new String(data);* </pre></blockquote><p>* Here are some more examples of how strings can be used:* <p><blockquote><pre>*     System.out.println("abc");*     String cde = "cde";*     System.out.println("abc" + cde);*     String c = "abc".substring(2,3);*     String d = cde.substring(1, 2);* </pre></blockquote>* <p>* The class <code>String</code> includes methods for examining* individual characters of the sequence, for comparing strings, for* searching strings, for extracting substrings, and for creating a* copy of a string with all characters translated to uppercase or to* lowercase. Case mapping is based on the Unicode Standard version* specified by the {@link java.lang.Character Character} class.* <p>* The Java language provides special support for the string* concatenation operator (&nbsp;+&nbsp;), and for conversion of* other objects to strings. String concatenation is implemented* through the <code>StringBuilder</code>(or <code>StringBuffer</code>)* class and its <code>append</code> method.* String conversions are implemented through the method* <code>toString</code>, defined by <code>Object</code> and* inherited by all classes in Java. For additional information on* string concatenation and conversion, see Gosling, Joy, and Steele,* <i>The Java Language Specification</i>.** <p> Unless otherwise noted, passing a <tt>null</tt> argument to a constructor* or method in this class will cause a {@link NullPointerException} to be* thrown.** <p>A <code>String</code> represents a string in the UTF-16 format* in which <em>supplementary characters</em> are represented by <em>surrogate* pairs</em> (see the section <a href="Character.html#unicode">Unicode* Character Representations</a> in the <code>Character</code> class for* more information).* Index values refer to <code>char</code> code units, so a supplementary* character uses two positions in a <code>String</code>.* <p>The <code>String</code> class provides methods for dealing with* Unicode code points (i.e., characters), in addition to those for* dealing with Unicode code units (i.e., <code>char</code> values).** @author  Lee Boynton* @author  Arthur van Hoff* @author  Martin Buchholz* @author  Ulf Zibis* @see     java.lang.Object#toString()* @see     java.lang.StringBuffer* @see     java.lang.StringBuilder* @see     java.nio.charset.Charset* @since   JDK1.0*/

好啦,这就是java的帮助文档…英语不好的童鞋可以使用有道翻译哦~

Java查看某个类的帮助文档相关推荐

  1. Java注释--单行注释、多行注释、文档注释

    Java注释–单行注释.多行注释.文档注释 单行注释和多行注释 语法格式 //单行注释 //单行注释 //注释内容/* 这里可以放置多行注释 多行注释的内容 Java真的学起来有意思!! */ 举例: ...

  2. Java使用Spire.Doc实现Word文档添加图片水印

    通过本文你将学到: Spire.Doc是什么? 如何在项目中引入Spire.Doc依赖? 项目中基于Spire.Doc封装工具类实现Word文档添加图片水印? 一.Spire.Doc是什么? 1.Sp ...

  3. Java 使用word模板创建word文档报告教程

    上面是java 利用word模板生成的一个word报告文档,利用的是第三方类库Poi-tl 是实现的. poi-tl是一个基于Apache POI的Word模板引擎,也是一个免费开源的Java类库,你 ...

  4. 如何查看历史版本的Go文档?嘘!答案我只告诉你!

    Go语言自开源至今已经11个年头了!截至本文发稿时,目前最新的Go版本为1.15,Go核心开发团队正紧锣密鼓的进行着Go 1.16版本的开发(现阶段主要是修复bug),该版本将在2021年2月份正式发 ...

  5. Word处理控件Aspose.Words功能演示:在 Java 中将 HTML 文件转换为 Word 文档

    在各种情况下,您可能需要将 HTML 内容转换为 Word 文档.例如,用于从所见即所得 HTML 编辑器生成文档或将网页转换为 DOCX 或 DOC 格式.为了以编程方式执行此转换,本文介绍了如何将 ...

  6. Java使用FreeMarker自动生成Word文档(带图片和表单)

    Java使用FreeMarker自动生成Word文档(带图片和表单) 1 背景 2 目标效果 3 创建Word模板 3.1 创建模板文档 3.2 转换模板文档 3.3 处理模板文档中的占位符 3.4 ...

  7. java jar 打印_Java 打印Word文档(二)

    通过使用Sprie.Doc for Java提供的PrinterSettings类可执行文档打印,具体可参见这篇文章中关于 使用 PrinterSettings来打印的方法.本文中将介绍使用Spire ...

  8. pdf转换html java,使用JAVA怎么将PDF转换为HTML文档

    使用JAVA怎么将PDF转换为HTML文档 发布时间:2021-05-25 18:26:18 来源:亿速云 阅读:85 作者:Leah 使用JAVA怎么将PDF转换为HTML文档?针对这个问题,这篇文 ...

  9. 简单几行代码,教你在Aspose.words中使用 Java 将水印添加到 Word 文档

    Aspose.Words 是一种高级Word文档处理API,用于执行各种文档管理和操作任务.API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word.此 ...

  10. JAVA中利用DOM解析XML文档

    JAVA中利用DOM解析XML文档 package org.sws.utils; import java.io.File;import java.io.IOException; import java ...

最新文章

  1. python利器怎么编程-bluepy 一款python封装的BLE利器简单介绍
  2. 使用HashSet去除重复元素的集合
  3. ubuntu 16.10安装mysql_在Ubuntu 16.10安装mysql workbench报未安装软件包 libpng12-0错误的解决方法...
  4. 视频 | BIM数据中心模型
  5. OpenMeetings的安装
  6. 拥抱智能,AI视频编码技术的新探索
  7. PD生成SQL脚本附带注释命令
  8. 一张图看完成都云栖大会的精彩,请用心感受!
  9. 鸿蒙电视是无线么,鸿蒙系统首秀,在自家设备上和普通电视大不相同赵崇带你走世界...
  10. C#图片处理之: 获取数码相片的EXIF信息(二)
  11. 多对多查询总结resultType和resultMap
  12. 软硬件融合新时代——让软件够灵活,硬件够高效,鱼和熊掌可兼得
  13. Yii框架官方指南系列53——专题:使用命令行生成代码(已废弃)
  14. linux 软件包安装管理
  15. 使用MAKER进行全基因组基因注释-基础篇
  16. 通过IP连接oracle数据库
  17. 《金牌网管师——助理级网吧网管》目录
  18. 大学生笔记本购买指南——扫盲版(2019)
  19. PHP cdata 处理
  20. 【ROS】移动机器人导航仿真(2)——SLAM(gmapping)

热门文章

  1. windows 驱动实现进程枚举
  2. RISCV-MCU启航篇之硬件选择-GD32VF103芯片
  3. GTASA圣安地列斯 DirectX 2.0 ENB 下窗口化运行的解决办法
  4. 关于百度富文本编辑器UEditor中ctrl+enter键发送消息的解决方案
  5. 数学建模总结:四类基本模型
  6. dnf服务器不维修,dnf无法修理装备
  7. win10系统键盘失灵怎么解决
  8. JAVA计算机毕业设计网上零食进销存(附源码、数据库)
  9. SLAM系统原理推导
  10. 《视觉SLAM十四讲》笔记