Whitney Martinez 6 anni fa
parent
commit
0071be0d93
5 ha cambiato i file con 29 aggiunte e 10 eliminazioni
  1. BIN
      Main.class
  2. 5
    0
      Main.ctxt
  3. 17
    3
      Main.java
  4. 0
    0
      README.TXT
  5. 7
    7
      package.bluej

BIN
Main.class Vedi File


+ 5
- 0
Main.ctxt Vedi File

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

+ 17
- 3
Main.java Vedi File

@@ -1,9 +1,23 @@
1 1
 /**
2 2
  * Created by iyasuwatts on 10/17/17.
3 3
  */
4
-public class Main {
5
-
4
+import java.util.*; 
5
+public class Main {    
6
+   
7
+       
6 8
     public static void main(String[] args){
7
-
9
+       int total;
10
+       Scanner input = new Scanner(System.in);
11
+       System.out.println("Please input a number and it we will add 1 to it");
12
+       String number = input.next();
13
+       int n = Integer.parseInt(number);
14
+       
15
+       total = n + 1;
16
+        
17
+       System.out.println(total);
8 18
     }
19
+    
9 20
 }
21
+    
22
+    
23
+

+ 0
- 0
README.TXT Vedi File


+ 7
- 7
package.bluej Vedi File

@@ -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=709
3
+editor.fx.0.width=800
4
+editor.fx.0.x=900
5
+editor.fx.0.y=146
6 6
 objectbench.height=164
7
-objectbench.width=776
7
+objectbench.width=461
8 8
 package.divider.horizontal=0.6
9 9
 package.divider.vertical=0.6845018450184502
10 10
 package.editor.height=364
11 11
 package.editor.width=674
12
-package.editor.x=-816
13
-package.editor.y=445
12
+package.editor.x=45
13
+package.editor.y=93
14 14
 package.frame.height=600
15 15
 package.frame.width=800
16 16
 package.numDependencies=0