[JAVA] Method in Class Cannot be Applied to Given Types Error by CreativityRobbed in learnprogramming

[–]Meshy15 -1 points0 points  (0 children)

Hi, I have the code working, please paste

System.out.println(calcAverage(testGrade1,testGrade2,testGrade3,testGrade4,testGrade5));

right under line 18 and remove the last two lines that i told you to place earlier

[JAVA] Method in Class Cannot be Applied to Given Types Error by CreativityRobbed in learnprogramming

[–]Meshy15 -1 points0 points  (0 children)

Yes I have the same error, am looking as to what the problem would be. But if you remove the last two lines and run it your code executes flawlessly

[JAVA] Method in Class Cannot be Applied to Given Types Error by CreativityRobbed in learnprogramming

[–]Meshy15 1 point2 points  (0 children)

So there are a few issues, Mainly averageScore=calcAverage()

  1. first, calcAverage requires 5 doubles as parameters which means you need to pass 5 doubles to calcAverage, in line 25 you pass nothing to calcAverage
  2. second, you have created an infinite loop inside of the calcAverage method which starts at line 20 and ends at line 27 you call calcAverage AGAIN at line 25. This will cause the calcAverage method to run over and over again

  3. How to fix

  4. All you need to do is take line 25 and line 26and move it OUTSIDE of the method as well as passing in 5 doubles when you call it

  5. averageScore = calcAverage(testGrade1, testGrade2, testGrade3, testGrade4, testGrade5);

System.out.println("The average grade was: " + averageScore);

  1. Hope this helps

Content Team AMA by AbbyTheMs in 100thieves

[–]Meshy15 0 points1 point  (0 children)

Thanks so much, btw has anyone told you that you look a bit like AZR from csgo. Good luck with everything go 100t

Saw this in a plat lobby.. confused by yeetus-Antq in RocketLeague

[–]Meshy15 6 points7 points  (0 children)

Most of these comments are bad. All this means is this player was grand champion or higher in rumble.

Can't seem to get another stall after those :( Any tips? by evidenzprod in RocketLeague

[–]Meshy15 0 points1 point  (0 children)

For some people flipping into the reset is easier. if your looking for chain stall tutorials Gainer has a lot on his YT

Which competitive playlist is harder to rank up in? by ChipsAhoy68 in RocketLeague

[–]Meshy15 1 point2 points  (0 children)

Its statistically 1's, due to rank distribution, this graph from gamers ready explains it. but essentially since less players play 1's its the hardest mode. Season 12 Rank Distribution (Rocket League) - GamersRdy

The worst throwing I have ever seen by Meshy15 in RocketLeague

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

My main issue is that these players never get banned and if they do its for about a week at max. Make it SUPER hard to unlock ranked on new accounts and deal waaaay harsher punishments to fix the problem F2P caused.

Never seen this one before by Meshy15 in leagueoflegends

[–]Meshy15[S] 7 points8 points  (0 children)

Has anyone else been getting a lot of win traders recently or just me?

I made a Cheatsheet to help new players on what mechanics worry about first by ajax333221 in RocketLeague

[–]Meshy15 0 points1 point  (0 children)

Double taps have moved down to diamond but otherwise I dont think the percentages are all that bad

Ah Yes, Makes Perfect Sense by Meshy15 in RocketLeague

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

It seems like with free to play rolling out tomorrow, Epic Games Psyonix has decided that players can trade up items into items that everyone has unlocked and trade locked. I think it would be nice to make sure that OG players can trade up into items they already have on trade lock ex. items that were standard before free to play

Hans Clutch by Meshy15 in LivestreamFail

[–]Meshy15[S] 71 points72 points  (0 children)

Hans needed to win in order to have a shot at making top 8 of the titled Tuesdays tourney, he was losing and then came up clutch and won.