#38 mdimarino

Atvērta
mdimarino vēlas sapludināt 1 revīzijas no mdimarino/ZCW-AliceAndBob-BlueJ:master uz master
4 mainītis faili ar 27 papildinājumiem un 14 dzēšanām
  1. 12
    4
      Main.java
  2. Binārs
      main.class
  3. 5
    0
      main.ctxt
  4. 10
    10
      package.bluej

+ 12
- 4
Main.java Parādīt failu

@@ -1,9 +1,17 @@
1 1
 /**
2 2
  * Created by iyasuwatts on 10/17/17.
3 3
  */
4
-public class Main {
5
-
4
+import java.util.Scanner;
5
+public class main {
6 6
     public static void main(String[] args ){
7
-
7
+        Scanner in = new Scanner(System.in);
8
+        System.out.print("What is your first name?");
9
+        String name = in.next();
10
+    
11
+        if (name.equalsIgnoreCase("Alice")){
12
+            System.out.print("Good morning Alice!");
13
+        }else if (name.equalsIgnoreCase("Bob")){
14
+            System.out.print("Good morning Bob!");
15
+        }
8 16
     }
9
-}
17
+ }

Binārs
main.class Parādīt failu


+ 5
- 0
main.ctxt Parādīt failu

@@ -0,0 +1,5 @@
1
+#BlueJ class context
2
+comment0.target=main
3
+comment1.params=args
4
+comment1.target=void\ main(java.lang.String[])
5
+numComments=2

+ 10
- 10
package.bluej Parādīt failu

@@ -1,16 +1,16 @@
1 1
 #BlueJ package file
2
-editor.fx.0.height=0
3
-editor.fx.0.width=0
4
-editor.fx.0.x=0
5
-editor.fx.0.y=0
2
+editor.fx.0.height=714
3
+editor.fx.0.width=800
4
+editor.fx.0.x=240
5
+editor.fx.0.y=23
6 6
 objectbench.height=101
7 7
 objectbench.width=776
8 8
 package.divider.horizontal=0.6
9 9
 package.divider.vertical=0.8007380073800738
10 10
 package.editor.height=427
11 11
 package.editor.width=674
12
-package.editor.x=181
13
-package.editor.y=109
12
+package.editor.x=468
13
+package.editor.y=135
14 14
 package.frame.height=600
15 15
 package.frame.width=800
16 16
 package.numDependencies=0
@@ -24,9 +24,9 @@ readme.width=47
24 24
 readme.x=10
25 25
 readme.y=10
26 26
 target1.height=50
27
-target1.name=Main
27
+target1.name=main
28 28
 target1.showInterface=false
29 29
 target1.type=ClassTarget
30
-target1.width=80
31
-target1.x=70
32
-target1.y=10
30
+target1.width=90
31
+target1.x=200
32
+target1.y=140