Whitney Martinez 6 anos atrás
pai
commit
5f2584708e
7 arquivos alterados com 64 adições e 13 exclusões
  1. BIN
      Main.class
  2. 5
    0
      Main.ctxt
  3. 4
    0
      Main.java
  4. BIN
      Nameinput.class
  5. 5
    0
      Nameinput.ctxt
  6. 27
    0
      Nameinput.java
  7. 23
    13
      package.bluej

BIN
Main.class Ver arquivo


+ 5
- 0
Main.ctxt Ver arquivo

@@ -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

+ 4
- 0
Main.java Ver arquivo

@@ -1,9 +1,13 @@
1 1
 /**
2 2
  * Created by iyasuwatts on 10/17/17.
3 3
  */
4
+import java.util.*;
4 5
 public class Main {
5 6
 
6 7
     public static void main(String[] args ){
8
+        
9
+        Nameinput name = new Nameinput();
10
+        name.name();
7 11
 
8 12
     }
9 13
 }

BIN
Nameinput.class Ver arquivo


+ 5
- 0
Nameinput.ctxt Ver arquivo

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

+ 27
- 0
Nameinput.java Ver arquivo

@@ -0,0 +1,27 @@
1
+
2
+/**
3
+ * Write a description of class nameinput here.
4
+ *
5
+ * @author (your name)
6
+ * @version (a version number or a date)
7
+ */
8
+import java.util.*;
9
+public class Nameinput
10
+{
11
+    public void name(){
12
+
13
+        Scanner input = new Scanner(System.in);
14
+        System.out.println("Is this Alice and Bob?");
15
+        String a = input.next();
16
+
17
+        if(a.equals("Alice")||(a.equals("Bob"))){
18
+         System.out.println("hello!");
19
+
20
+       }else{
21
+         System.out.println("Sorry, looking for Alice or Bob");
22
+       }
23
+    }
24
+}
25
+    
26
+
27
+

+ 23
- 13
package.bluej Ver arquivo

@@ -1,20 +1,23 @@
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
+dependency1.from=Main
3
+dependency1.to=Nameinput
4
+dependency1.type=UsesDependency
5
+editor.fx.0.height=712
6
+editor.fx.0.width=800
7
+editor.fx.0.x=240
8
+editor.fx.0.y=23
6 9
 objectbench.height=101
7
-objectbench.width=776
10
+objectbench.width=461
8 11
 package.divider.horizontal=0.6
9 12
 package.divider.vertical=0.8007380073800738
10 13
 package.editor.height=427
11 14
 package.editor.width=674
12
-package.editor.x=181
13
-package.editor.y=109
15
+package.editor.x=457
16
+package.editor.y=23
14 17
 package.frame.height=600
15 18
 package.frame.width=800
16
-package.numDependencies=0
17
-package.numTargets=1
19
+package.numDependencies=1
20
+package.numTargets=2
18 21
 package.showExtends=true
19 22
 package.showUses=true
20 23
 project.charset=UTF-8
@@ -24,9 +27,16 @@ readme.width=47
24 27
 readme.x=10
25 28
 readme.y=10
26 29
 target1.height=50
27
-target1.name=Main
30
+target1.name=Nameinput
28 31
 target1.showInterface=false
29 32
 target1.type=ClassTarget
30
-target1.width=80
31
-target1.x=70
32
-target1.y=10
33
+target1.width=130
34
+target1.x=90
35
+target1.y=110
36
+target2.height=50
37
+target2.name=Main
38
+target2.showInterface=false
39
+target2.type=ClassTarget
40
+target2.width=80
41
+target2.x=70
42
+target2.y=10