backup
This commit is contained in:
29
14/Al.java
Normal file
29
14/Al.java
Normal 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
|
||||
Math.
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user