Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4a6e0c4

Browse files
array de string usando args
1 parent d20462b commit 4a6e0c4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package module2.storing.reference;
2+
3+
public class ArrayString {
4+
5+
public static void main(String[] args) {
6+
7+
//executar essa classe usando terminal
8+
System.out.println("Funcionou");
9+
10+
//adicionar parametros no momento de executar a classe ArrayString
11+
for (int i = 0; i < args.length; i++) {
12+
System.out.println(args[i]);
13+
}
14+
}
15+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /