Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class NewClass {
- public static void main(String[] args) {
- System.out.println("Zahl eingeben: ");
- Scanner scanner = new Scanner(System.in);
- String data=scanner.nextLine();
- System.out.println(data);
- int a = 0;
- while(a < 6) {
- System.out.println(a);
- a++;
- }
- if (a > 6){
- System.out.println("SAFE SPACE");
- } else {
- System.out.println("Get in the Safe Space");
- System.out.println("PERSON has entered the Safe Space. Safe Space closes instantly.");
- }
- String s = new String("Alte Noten: ");
- String t = new String("5.5");
- String u = new String("4");
- String v = new String("3");
- String w = new String("2.5");
- String x = new String("6.0");
- String y = new String("5.2");
- String z = new String("4");
- String t1 = t.replaceAll("5.5", "6");
- String u1 = u.replaceAll("4", "4");
- String v1 = v.replaceAll("3", "5");
- String w1 = w.replaceAll("2.5", "3");
- String x1 = x.replaceAll("6.0", "2");
- String y1 = y.replaceAll("5.2", "1.8");
- String z1 = z.replaceAll("4", "4.4");
- System.out.println("Neu: " + s + " " + t1 + " " + u1 + " " + v1 + " " + w1 + " "
- + x1 + " " + y1 + " " + z1);
- System.out.println("Neue Noten eingeben: ");
- int note1 = t1;
- Scanner scanner1 = new Scanner(System.in);
- String data1=scanner.nextLine();
- System.out.println(data1);
- System.out.println("DOORS LOCKED");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement