Just compiled and executed. It looks good, thank you!
Type: Posts; User: JessicaCouture95
Just compiled and executed. It looks good, thank you!
Just revised my code. Does this look good?
public class Count
{
public static void main (String[] args)
{
double sum = 0;
This is what I have so far:
for (int x = 1, y = 30; x <= 30, y >= 1; x++, y--)
{
int sum = 0;
sum += (x/y);
}
I understand the series, and I understand what is being asked of me. But, I do not understand how to set it up in a for loop. I just learned for loops in my class, and I am not sure if this for loop...
Hi, I am having troubles with creating a for loop that calculates the total of a series of numbers: 1/30 + 2/29 + 3/28 + ... 30/1. I don't know where to start and need some help!
After fixing the constructor error, I found many more problems within my code. Luckily, I was able to quickly figure them out. They were just minor errors. The code now works. But thank you!
The class has the constructor
<
public TestScore(int s1, int s2, int s3)
{
score1 = s1;
score2 = s2;
score3 = s3;
}
Hello,
I am very new to Java, and I keep running into problems with constructors. Specifically, I am having trouble with this class & driver:
<
public class TestScores
{
private int...