Advertisement
Guest User

Untitled

a guest
Dec 28th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class NewClass {
  4. public static void main(String[] args) {
  5.  
  6. System.out.println("Zahl eingeben: ");
  7. Scanner scanner = new Scanner(System.in);
  8. String data=scanner.nextLine();
  9. System.out.println(data);
  10.  
  11.  
  12. int a = 0;
  13.  
  14. while(a < 6) {
  15. System.out.println(a);
  16. a++;
  17. }
  18.  
  19. if (a > 6){
  20. System.out.println("SAFE SPACE");
  21.  
  22.  
  23. } else {
  24. System.out.println("Get in the Safe Space");
  25. System.out.println("PERSON has entered the Safe Space. Safe Space closes instantly.");
  26. }
  27. String s = new String("Alte Noten: ");
  28. String t = new String("5.5");
  29. String u = new String("4");
  30. String v = new String("3");
  31. String w = new String("2.5");
  32. String x = new String("6.0");
  33. String y = new String("5.2");
  34. String z = new String("4");
  35.  
  36. String t1 = t.replaceAll("5.5", "6");
  37. String u1 = u.replaceAll("4", "4");
  38. String v1 = v.replaceAll("3", "5");
  39. String w1 = w.replaceAll("2.5", "3");
  40. String x1 = x.replaceAll("6.0", "2");
  41. String y1 = y.replaceAll("5.2", "1.8");
  42. String z1 = z.replaceAll("4", "4.4");
  43. System.out.println("Neu: " + s + " " + t1 + " " + u1 + " " + v1 + " " + w1 + " "
  44. + x1 + " " + y1 + " " + z1);
  45. System.out.println("Neue Noten eingeben: ");
  46.  
  47. int note1 = t1;
  48.  
  49. Scanner scanner1 = new Scanner(System.in);
  50. String data1=scanner.nextLine();
  51. System.out.println(data1);
  52.  
  53. System.out.println("DOORS LOCKED");
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement