This is an automated email from the ASF dual-hosted git repository.
vieiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-website.git
The following commit(s) were added to refs/heads/master by this push:
new f013636fe Update javase-intro.adoc
new ac31bf275 Merge pull request #646 from SeanCarrick/patch-4
f013636fe is described below
commit f013636fe6bde84fb6d22e939af65338cf636b7e
Author: Sean Carrick <[email protected]>
AuthorDate: Sat Feb 25 09:26:37 2023 -0600
Update javase-intro.adoc
Performed these updates:
Changed `StringBuffer` to `StringBuilder` since the `StringBuffer` has
said, since JDK5:
>The `StringBuilder` class should generally be used in preference to this
one, as it supports all of the same operations but it is faster, as it performs
no synchronization.
-SC
---
netbeans.apache.org/src/content/kb/docs/java/javase-intro.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/netbeans.apache.org/src/content/kb/docs/java/javase-intro.adoc
b/netbeans.apache.org/src/content/kb/docs/java/javase-intro.adoc
index 1e4f812b0..ce2ffc7b5 100644
--- a/netbeans.apache.org/src/content/kb/docs/java/javase-intro.adoc
+++ b/netbeans.apache.org/src/content/kb/docs/java/javase-intro.adoc
@@ -23,7 +23,7 @@
:jbake-type: tutorial
:jbake-tags: tutorials
:jbake-status: published
-:reviewed: 2019-02-24
+:reviewed: 2023-02-25
:syntax: true
:source-highlighter: pygments
:icons: font
@@ -144,7 +144,7 @@ Type or paste in the following method code:
----
public static String acrostic(String[] args) {
- StringBuffer b = new StringBuffer();
+ StringBuilder b = new StringBuilder();
for (int i = 0; i < args.length; i++) {
if (args[i].length() > i) {
b.append(args[i].charAt(i));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists