⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 javaio.doc20.html

📁 java语言规范
💻 HTML
📖 第 1 页 / 共 2 页
字号:
The low-order bytes of the characters in the character array <code>s</code> are written, in order, 
to the contained output stream in exactly the manner of the <code>write</code> method 
<a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="31646"></a>
If <code>s</code> is <code>null</code>, a <code>NullPointerException</code> is thrown.<p>
<a name="31628"></a>
<p><font size=+1><strong>22.22.11   </strong> <code>public void <code><b>print</b></code>(boolean b)</code></font>
<p>
<a name="30010"></a>
The low-order bytes of the characters in the <code>String</code> that would be produced by 
<code>String.valueOf(b)</code> <a href="javalang.doc11.html#14020">(&#167;20.12.41)</a> as a string are written, in order, to the contained 
output stream in exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30018"></a>
<p><font size=+1><strong>22.22.12   </strong> <code>public void <code><b>print</b></code>(char c)</code></font>
<p>
<a name="30019"></a>
The low-order byte of the character <code>c</code> is written to the contained output stream in 
exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30024"></a>
<p><font size=+1><strong>22.22.13   </strong> <code>public void <code><b>print</b></code>(int i)</code></font>
<p>
<a name="30025"></a>
The low-order bytes of the characters in the <code>String</code> that would be produced by 
<code>String.valueOf(i)</code> <a href="javalang.doc11.html#14022">(&#167;20.12.43)</a> as a string are written, in order, to the contained 
output stream in exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30033"></a>
<p><font size=+1><strong>22.22.14   </strong> <code>public void <code><b>print</b></code>(long l)</code></font>
<p>
<a name="30034"></a>
The low-order bytes of the characters in the <code>String</code> that would be produced by 
<code>String.valueOf(l)</code> <a href="javalang.doc11.html#14023">(&#167;20.12.44)</a> as a string are written, in order, to the contained 
output stream in exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30042"></a>
<p><font size=+1><strong>22.22.15   </strong> <code>public void <code><b>print</b></code>(float f)</code></font>
<p>
<a name="30043"></a>
The low-order bytes of the characters in the <code>String</code> that would be produced by 
<code>String.valueOf(f)</code> <a href="javalang.doc11.html#14024">(&#167;20.12.45)</a> as a string are written, in order, to the contained 
output stream in exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30051"></a>
<p><font size=+1><strong>22.22.16   </strong> <code>public void <code><b>print</b></code>(double d)</code></font>
<p>
<a name="30052"></a>
The low-order bytes of the characters in the <code>String</code> that would be produced by 
<code>String.valueOf(d)</code> <a href="javalang.doc11.html#14025">(&#167;20.12.46)</a> as a string are written, in order, to the contained 
output stream in exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30059"></a>
<p><font size=+1><strong>22.22.17   </strong> <code>public void <code><b>println</b></code>()</code></font>
<p>
<a name="30060"></a>
The low-order byte of the newline character <code>'\n'</code> is written to the contained output
stream in exactly the manner of the <code>write</code> method <a href="javaio.doc20.html#29947">(&#167;22.22.3)</a>.
<p><a name="30064"></a>
<p><font size=+1><strong>22.22.18   </strong> <code>public void <code><b>println</b></code>(Object obj)</code></font>
<p>
<a name="30068"></a>
This is exactly the same as <code>print(obj)</code> <a href="javaio.doc20.html#29988">(&#167;22.22.8)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30070"></a>
<p><font size=+1><strong>22.22.19   </strong> <code>public void <code><b>println</b></code>(String s)</code></font>
<p>
<a name="30074"></a>
This is exactly the same as <code>print(s)</code> <a href="javaio.doc20.html#29997">(&#167;22.22.9)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30075"></a>
<p><font size=+1><strong>22.22.20   </strong> <code>public void <code><b>println</b></code>(char[] s) throws <code>NullPointerException</code></code></font>
<p>
<a name="30079"></a>
This is exactly the same as <code>print(s)</code> <a href="javaio.doc20.html#30003">(&#167;22.22.10)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="31645"></a>
If <code>s</code> is <code>null</code>, a <code>NullPointerException</code> is thrown.<p>
<a name="30080"></a>
<p><font size=+1><strong>22.22.21   </strong> <code>public void <code><b>println</b></code>(boolean b)</code></font>
<p>
<a name="30084"></a>
This is exactly the same as <code>print(b)</code> <a href="javaio.doc20.html#31628">(&#167;22.22.11)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30085"></a>
<p><font size=+1><strong>22.22.22   </strong> <code>public void <code><b>println</b></code>(char c)</code></font>
<p>
<a name="30089"></a>
This is exactly the same as <code>print(c)</code> <a href="javaio.doc20.html#30018">(&#167;22.22.12)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30090"></a>
<p><font size=+1><strong>22.22.23   </strong> <code>public void <code><b>println</b></code>(int i)</code></font>
<p>
<a name="30094"></a>
This is exactly the same as <code>print(i)</code> <a href="javaio.doc20.html#30024">(&#167;22.22.13)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30095"></a>
<p><font size=+1><strong>22.22.24   </strong> <code>public void <code><b>println</b></code>(long l)</code></font>
<p>
<a name="30099"></a>
This is exactly the same as <code>print(l)</code> <a href="javaio.doc20.html#30033">(&#167;22.22.14)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30100"></a>
<p><font size=+1><strong>22.22.25   </strong> <code>public void <code><b>println</b></code>(float f)</code></font>
<p>
<a name="30104"></a>
This is exactly the same as <code>print(f)</code> <a href="javaio.doc20.html#30042">(&#167;22.22.15)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p><a name="30105"></a>
<p><font size=+1><strong>22.22.26   </strong> <code>public void <code><b>println</b></code>(double d)</code></font>
<p>
<a name="30109"></a>
This is exactly the same as <code>print(d)</code> <a href="javaio.doc20.html#30051">(&#167;22.22.16)</a> followed by writing the low-
order byte of the newline character <code>'\n'</code> to the contained output stream.
<p>

<hr>
<!-- This inserts footnotes--><p>
<a href="index.html">Contents</a> | <a href="javaio.doc19.html">Prev</a> | <a href="javaio.doc21.html">Next</a> | <a href="j.index.doc1.html">Index</a>
<p>
<font size=-1>Java Language Specification (HTML generated by Suzette Pelouch on February 24, 1998)<br>
<i><a href="jcopyright.doc.html">Copyright &#169 1996 Sun Microsystems, Inc.</a>
All rights reserved</i>
<br>
Please send any comments or corrections to <a href="mailto:doug.kramer@sun.com">doug.kramer@sun.com</a>
</font>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -