Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Java Programming Tutorial - 21 - Simple Averaging Program

Loading...

Sign in or sign up now!
127,906
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 10, 2009

How to build a simple program that averages 10 numbers in java.

  • likes, 8 dislikes

Link to this comment:

Share to:

Top Comments

  • Who's learning this NOT to mod minecraft

  • You used to use the square brackets after the args like this (String args[]) and now you're doing it (String[] args) instead, what's the difference?

see all

All Comments (312)

Sign In or Sign Up now to post a comment!
  • who is learning Java to make android apps?

  • @williamsc Well, I'm learning this because of Minecraft, and I want to be able to make Minecraft mods, but I REALLY want to learn this so that I can make a cool game.

  • @bham6666 You don't have to use int. I am using doubles. He is just doing what he think is the easiest for us. I am for instance using a Scanner to input how many grades i have. That means that i have another Int called "many". So when i am writing the While loop, i am typing "while(counter < many)" and then the rest.

    At the bottom of the code i am writing average = total / many;

    Hope this helped you. Short answer: He just want to make the tutorials "easy" :)

  • there's no difference man :)

  • @MrShubby12 Thank you mate :)

  • @Justoneofthebrothers If u watched his starting tutorial(s) he said it doesnt really matter where u put those"[]". So u can put them before "args" or after "args"

  • Wouldn't you have to use double average or divide by 10.0 because the average from 1 to 10 is 5.5?, or did you purposely round down due to it being grades? , I'm from the UK so e don't have GPA's

  • @williamsc I'm just learning this to someday make my own 2D games. I've honestly never cared for making 3D games.

  • @williamsc I'm learning this to make my OWN minecraft :D

View all Comments »
Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more