提交 f779c1fc 编写于 作者: W wizardforcel

2020-06-25 15:43:50

上级 0531404c
---
permalink: /404.html
---
<script>window.location.href = '/';</script>
jbt.apachecn.org
\ No newline at end of file
......@@ -10,8 +10,6 @@
与往常一样,我们的第一步是下载所需的 POI JAR。 转至 [Apache POI](https://poi.apache.org/download.html#POI-3.17) ,然后下载最新稳定版本的二进制发行版(在撰写本文时,3.17 是最新稳定发行版)。 单击该 zip 文件的二进制版本,重定向到实际的[下载页面](https://www.apache.org/dyn/closer.lua/poi/release/bin/poi-bin-3.17-20170915.zip)
![POI download link](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20859%20433'%3E%3C/svg%3E)
![POI download link](img/66dde6eb58d06604bfe3993478f8010c.png)
## 步骤 2:
......
......@@ -45,7 +45,7 @@ public class ResourceMgt {
}
```
try 关键字之后立即引入一个括号,并且所有资源都应仅在该括号内声明。 这些资源用分号分隔。
`try`关键字之后立即引入一个括号,并且所有资源都应仅在该括号内声明。 这些资源用分号分隔。
如您所见,使用`try-with-resources`语句的代码
......
......@@ -15,7 +15,7 @@ Java 继承定义了超类及其子类之间的 is-a 关系。 这意味着只
`this``super`关键字:
这两个关键字`super``this`帮助您显式命名所需的字段或方法。 使用此关键字和超级关键字,您可以完全控制是否要调用同一类中的方法或字段,还是要从直接父类中调用。 `this`关键字用作对作为当前类实例的当前对象的引用。 `super`关键字还引用当前的对象,但作为当前类的超类的实例。
这两个关键字`super``this`帮助您显式命名所需的字段或方法。 使用`this`关键字和`super`关键字,您可以完全控制是否要调用同一类中的方法或字段,还是要从直接父类中调用。 `this`关键字用作对作为当前类实例的当前对象的引用。 `super`关键字还引用当前的对象,但作为当前类的超类的实例。
`this`关键字引用当前对象,在局部变量隐藏或覆盖相同名称的字段的情况下很有用。 如果某个方法需要将当前对象传递给另一个方法,则可以使用此引用进行传递。 注意,该引用不能在静态上下文中使用,因为在任何对象的上下文中都不会执行静态代码。
......
......@@ -4,7 +4,7 @@
## `this`是什么
`this`是 Java 中的关键字。 可以在类的*方法**构造器*内部使用。 它(`this`) 用作对当前对象的引用,当前对象的方法或构造器正在被调用。 关键字可用于从实例方法或构造器中引用当前对象的任何成员。
`this`是 Java 中的关键字。 可以在类的*方法**构造器*内部使用。 它(`this`) 用作对当前对象的引用,当前对象的方法或构造器正在被调用。 `this`关键字可用于从实例方法或构造器中引用当前对象的任何成员。
## `this`关键字和字段(实例变量)
......@@ -178,7 +178,7 @@ class JBT1 extends JBTThisAsParameter {
}
```
如果您正确理解了关键字,那么下一步应该是从 [Java 教程](https://javabeginnerstutorial.com/core-java-tutorial/)了解 Java 中的`static`关键字。
如果您正确理解了`this`关键字,那么下一步应该是从 [Java 教程](https://javabeginnerstutorial.com/core-java-tutorial/)了解 Java 中的`static`关键字。
#### 参考文献
1- [官方文档](https://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html)
......
......@@ -46,7 +46,7 @@ Java 数组是一种数据结构类型,用于存储相同类型的多个变量
### 一维数组
new 关键字将用于构造一维/多维数组。
`new`关键字将用于构造一维/多维数组。
```java
int[] arr; //declares a new array
......
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
<!-- google ads -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- baidu stats -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?38525fdac4b5d4403900b943d4e7dd91";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- google webmaster -->
<meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" />
</head>
<body>
<div id="app">now loading...</div>
<script id="footer" type="text/xml">
<hr/>
<div align="center">
<p><a href="http://www.apachecn.org/" target="_blank"><font face="KaiTi" size="6" color="red">我们一直在努力</font></a><p>
<p><a href="https://github.com/apachecn/jbt-zh/" target="_blank">apachecn/jbt-zh</a></p>
<p><iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=jbt-zh&type=watch&count=true&v=2" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
<iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=jbt-zh&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
<iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=jbt-zh&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=bcee938030cc9e1552deb3bd9617bbbf62d3ec1647e4b60d9cd6b6e8f78ddc03"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ML | ApacheCN" title="ML | ApacheCN"></a></p>
<div style="text-align:center;margin:0 0 10.5px;">
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-3565452474788507"
data-ad-slot="2543897000"></ins>
</div>
</div>
</script>
<script>
window.docsPlugin = function(hook) {
var footer = document.querySelector('#footer').innerHTML
hook.afterEach(function(html) {
return html + footer
})
hook.doneEach(function() {
(adsbygoogle = window.adsbygoogle || []).push({})
})
}
window.$docsify = {
loadSidebar: 'SUMMARY.md',
name: 'JavaBeginnersTutorial 中文系列教程',
auto2top: true,
themeColor: '#060654',
repo: 'apachecn/jbt-zh',
plugins: [window.docsPlugin],
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册