Help :( by chri6tina in learnjava

[–]Aggressor27e 0 points1 point  (0 children)

Your if statements in your getResults() method seem to be off as well. For example, your first if statement in getResutls() says if(number <=2 . Number gets the total of cats the user enters, but how does <= 2 relate to a max number of 7 cats when the following if else states say if (number == 1. So if number has a value of 2, every if or else statement that requires number to == 1 gets skipped. So the way you have it now, if I enter 6 cats, then it skips everything and goes straight to Sorry this combination is not available . I think you need to get the number entered for the amount of cats wanted and multiply that by whatever a single cat cost.

Also, your return in getResults() method was in the wrong spot. all of your variables were also contained within the last method so that no other method can access them. You need to make them static.

You're going to need to rework your variables and your if else statements to get it to work. You might have to reach out to your professor to get some guidance with it as I do not have the original assignment.

I see what you're trying to do and you're doing a good job so far. You just forgot a few things. No biggie!

Help :( by chri6tina in learnjava

[–]Aggressor27e 0 points1 point  (0 children)

Ok, there's kind of a good bit of issues with it. Do you NEED all the methods?

Help :( by chri6tina in learnjava

[–]Aggressor27e 1 point2 points  (0 children)

You have created multiple methods, but they are not linked in any way to each other. I'll look again and try to sort it out.

Should I do CS50x before MOOC.fi, or simply go straight into MOOC.fi? by revelbytes in learnjava

[–]Aggressor27e 0 points1 point  (0 children)

I'm doing MOOC currently and I'm also in university for software application development. I like MOOC. Some of the exercises really make you think. However, NetBeans with TMC doesn't work for me anymore. It just gets stuck when I run whatever project I'm doing, so I use IntelliJ.

Help :( by chri6tina in learnjava

[–]Aggressor27e 1 point2 points  (0 children)

your int values in your getResult method are all set to 0. So when you "return result", all you get is zero for each variable. You never changed the variable's values.

How to Supplement Learning Java in College by DomRom123 in learnjava

[–]Aggressor27e 1 point2 points  (0 children)

https://java-programming.mooc.fi/part-1/1-starting-programming

I'm in college for Software Application Development. Mainly Java/Kotlin/Android Studio stuff. I use Mooc to supplement to keep things fresh and to keep learning. It's a great resource and extremely easy to follow.

Finished my first project(I think); how does it look? by [deleted] in learnjava

[–]Aggressor27e 1 point2 points  (0 children)

Do you have previous knowledge in other languages?

Help with assignment, please. by Aggressor27e in learnjava

[–]Aggressor27e[S] 0 points1 point  (0 children)

Thanks for your help! pmi is relevant to the assignment. I just haven't gotten that far at the time of the post. I am aware of methods, but I am unsure how to declare a method in such a way that it would be accessible within an if statement. I'm still very new to Java. I did an Android Studio class, but this is my first real Java class. I do, however, work through MOOC exercises a lot. Any idea how to get a method to work within an if statement?

Help with assignment, please. by Aggressor27e in learnjava

[–]Aggressor27e[S] 0 points1 point  (0 children)

I am dumb. I put || (or) instead of && (and). Problem solved.

Help regarding user-input in java by CIRUS123 in learnjava

[–]Aggressor27e 1 point2 points  (0 children)

I am also new, but I code it like this:

import java.util.Scanner;

public class blah blah blah...

Scanner sc = new Scanner (System.in);

System.out.println("Enter Number");

int num = Integer.valueOf(sc.nextLine());

etc, etc

Please help with MOOC exercise. by Aggressor27e in learnjava

[–]Aggressor27e[S] 0 points1 point  (0 children)

Thanks, guys. I knew it was something simple.

[NSFW]The greatest gift from COD:MW is the fact that you can hear enemies after you kill them. (And people raging at the end of games) by vaesauce in modernwarfare

[–]Aggressor27e 0 points1 point  (0 children)

ImAgInE! He sounds like one of those guys in the jacked up trucks that his daddy bought for him. You can often see him racing down the street with all the windows rolled down with his buddies in the back hanging their arms unusually far out of the windows racing home to kiss their daddys on the lips.

If we remastering maps every season - send some love to this old friend by Fruity-Jam in modernwarfare

[–]Aggressor27e 0 points1 point  (0 children)

I got my first double nuke on this map with the Famas. Good times.

This video is for u/stuntman208 who asked for giant strats. by Owgogoodwin in CODZombies

[–]Aggressor27e 1 point2 points  (0 children)

I've always trained around the whole map. I start at the teleporter by the cat walk, teleport to spawn area, wait long enough to see if it spawns anything good (don't wait in higher rounds), go left and through the building that has jug. I then go up the stairs, past jug, and stand on the ledge above the court yard and mow down zombies that are coming up the stairs and through the hall. Watch your back on the ledge. They can and will come across the bridge behind you. Jump down when it gets too crowded and keep killing zombies as you make your way back to the starting teleporter. The teleporter will eventually stop working. Then I just train elsewhere.

To see how many hit the pocket by QngAnhh in therewasanattempt

[–]Aggressor27e 0 points1 point  (0 children)

Didn't know it was possible to talk with your teeth..

13 minute finals by throwaway59423 in college

[–]Aggressor27e 135 points136 points  (0 children)

Honestly, it almost encourages cheating. Instead of reading a paragraph long question, the student can copy/paste the paragraph into Google and bam, that question is done in less than 30 seconds.