Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Alllocate and release memory
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { System.out.println("Hello, World!"); int [] a ={2, 2, 2}; int [] b ={2, 2, 2}; int [] c = new int [3]; System.out.println(Arrays.toString (a)); System.out.println(Arrays.toString (b)); System.out.println(Arrays.toString (c)); for (int I=0; I <3; I++){ c [I]=a [I]*b [I]; } System.out.println(Arrays.toString (c)); a=null; b=null; c=null; System.out.println(Arrays.toString (a)); System.out.println(Arrays.toString (b)); System.out.println(Arrays.toString (c)); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Quadratic equation
Queue using linked list
4th ques
Linked List creation
Java - Swap two numbers without using temp var
2.7 intersection
2darray
nested
JAVA # Dizi Ortalama
1B
Please log in to post a comment.