Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Dynamic Array

Language: Layout:
+ ] Show input
Compilation time: 0.53 sec, absolute service time: 0,68 sec 
fork mode |  history  | discussion
Error(s), warning(s):
source_file.java:1: error: class, interface, or enum expected
public static void main (String[]
              ^
source_file.java:8: error: class, interface, or enum expected
int i = 0; i < 10; i ++){
           ^
source_file.java:8: error: class, interface, or enum expected
int i = 0; i < 10; i ++){
                   ^
source_file.java:15: error: class, interface, or enum expected
int i = 0; i < data.size (); i
           ^
source_file.java:15: error: class, interface, or enum expected
int i = 0; i < data.size (); i
                             ^
source_file.java:17: error: unclosed string literal
elemen ke --" + i + " : " + data.get i
                        ^
source_file.java:21: error: class, interface, or enum expected
System.out.println
^
source_file.java:22: error: unclosed string literal
nMencari indeks dari suatu nilai di dalam array list: ");
                                                      ^
source_file.java:24: error: class, interface, or enum expected
data.indexOf (60)); System.out.println data.indexOf (70 ));
                    ^
source_file.java:25: error: class, interface, or enum expected
System.out.println
^
source_file.java:26: error: unclosed string literal
nMemeriksa keberadaan suatu nilai di dalam array list: ");
                                                       ^
source_file.java:28: error: class, interface, or enum expected
data.contains (60)); System.out.println data.contains (
                     ^
source_file.java:30: error: unclosed string literal
nUpdate nilai di dalam array list: ");
                                   ^
source_file.java:32: error: class, interface, or enum expected
(6, 600); data.set (7, 700);
          ^
source_file.java:33: error: class, interface, or enum expected
System.out.println
^
source_file.java:34: error: class, interface, or enum expected
data.get (6)); System.out.println data.get (7 ));
               ^
source_file.java:35: error: class, interface, or enum expected
System.out.println
^
source_file.java:36: error: unclosed string literal
nMenghapus suatu nilai di dalam array list: ");
                                            ^
source_file.java:38: error: class, interface, or enum expected
(6); data.remove (6);
     ^
source_file.java:39: error: class, interface, or enum expected
System.out.println
^
source_file.java:42: error: class, interface, or enum expected
int i = 0; i < data.size (); i
           ^
source_file.java:42: error: class, interface, or enum expected
int i = 0; i < data.size (); i
                             ^
source_file.java:44: error: unclosed string literal
elemen ke --" + i + " : " + data.get i
                        ^
23 errors