This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

29
14/Al.~ava Normal file
View File

@@ -0,0 +1,29 @@
import java.util.ArrayList;
public class Al {
public static void main(String args[]) {
ArrayList<Double> noten = new ArrayList();
noten.add(5.6);
if(noten.contains(5.6)) {
System.out.println("Ture");
}
else {
System.out.println("False");
} // end of if-else
for (int i = 0; i<25 ;i++ ) {
noten.add(Math.ceil((Math.random() * 10)));
} // end of for
System.out.println(noten.get(5));
System.out.println(noten);
System.out.println(noten.size());
System.out.println(noten.remove(0));
System.out.println(noten);
}
}