Xzavia Cuello 6 anni fa
parent
commit
9fcb10739d
5 ha cambiato i file con 32 aggiunte e 14 eliminazioni
  1. 0
    9
      Main.java
  2. BIN
      names.class
  3. 5
    0
      names.ctxt
  4. 22
    0
      names.java
  5. 5
    5
      package.bluej

+ 0
- 9
Main.java Vedi File

@@ -1,9 +0,0 @@
1
-/**
2
- * Created by iyasuwatts on 10/17/17.
3
- */
4
-public class Main {
5
-
6
-    public static void main(String[] args ){
7
-
8
-    }
9
-}

BIN
names.class Vedi File


+ 5
- 0
names.ctxt Vedi File

@@ -0,0 +1,5 @@
1
+#BlueJ class context
2
+comment0.target=names
3
+comment1.params=
4
+comment1.target=void\ main()
5
+numComments=2

+ 22
- 0
names.java Vedi File

@@ -0,0 +1,22 @@
1
+/**
2
+ * Created by iyasuwatts on 10/17/17.
3
+ */
4
+import java.util.Scanner;
5
+
6
+public class names {
7
+
8
+    public static void main(){
9
+
10
+        Scanner scanner = new Scanner(System.in);
11
+        String userInput = scanner.next();
12
+
13
+        if (userInput.equals("Alice") || userInput.equals("Bob")){
14
+            System.out.println("Welcome");
15
+
16
+        }
17
+    }
18
+
19
+        
20
+}
21
+
22
+    

+ 5
- 5
package.bluej Vedi File

@@ -1,8 +1,8 @@
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=717
3
+editor.fx.0.width=883
4
+editor.fx.0.x=215
5
+editor.fx.0.y=23
6 6
 objectbench.height=101
7 7
 objectbench.width=776
8 8
 package.divider.horizontal=0.6
@@ -24,7 +24,7 @@ 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=names
28 28
 target1.showInterface=false
29 29
 target1.type=ClassTarget
30 30
 target1.width=80