Skip to content

Problem solved #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion SumOfInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ public SumOfInput()

public Integer oneToNumber(Integer numberToSum){

return sum;
for (int i = 0; i <= numberToSum; i++) {
sum += i;
}
int x = sum;
sum = 0;
return x;
}

}
1 change: 1 addition & 0 deletions SumOfInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class SumOfInputTest
//in the class?
public SumOfInputTest()
{
Integer sum = 0;
}

@Before
Expand Down
60 changes: 38 additions & 22 deletions package.bluej
Original file line number Diff line number Diff line change
@@ -1,32 +1,48 @@
#BlueJ package file
editor.fx.0.height=0
editor.fx.0.width=0
editor.fx.0.x=0
editor.fx.0.y=0
dependency1.from=SumOfInputTest
dependency1.to=SumOfInput
dependency1.type=UsesDependency
editor.fx.0.height=553
editor.fx.0.width=775
editor.fx.0.x=464
editor.fx.0.y=88
objectbench.height=164
objectbench.width=776
package.divider.horizontal=0.6
package.divider.vertical=0.6845018450184502
package.editor.height=364
package.editor.width=674
package.editor.x=-816
package.editor.y=445
package.frame.height=600
package.frame.width=800
package.numDependencies=0
package.numTargets=1
objectbench.width=354
package.divider.horizontal=0.5757575757575758
package.divider.vertical=0.5947867298578199
package.editor.height=244
package.editor.width=530
package.editor.x=247
package.editor.y=160
package.frame.height=486
package.frame.width=647
package.numDependencies=1
package.numTargets=3
package.showExtends=true
package.showUses=true
project.charset=UTF-8
readme.height=58
readme.height=60
readme.name=@README
readme.width=47
readme.width=48
readme.x=10
readme.y=10
target1.height=50
target1.name=Main
target1.height=70
target1.name=SumOfInput
target1.showInterface=false
target1.type=ClassTarget
target1.width=80
target1.x=70
target1.y=10
target1.width=120
target1.x=10
target1.y=90
target2.height=70
target2.name=SumOfInputTest
target2.showInterface=false
target2.type=UnitTestTargetJunit4
target2.width=120
target2.x=140
target2.y=90
target3.height=70
target3.name=README.md
target3.type=TextTarget
target3.width=120
target3.x=130
target3.y=10