How to write an average to one decimal place and make it round up.

Hello,I created a method that determines the average. But, i want that number to be to one decimal place and rounded. How would i do that.THANK YOU VERY MUCh
[178 byte] By [MoMo9390a] at [2007-11-26 19:44:01]
# 1
Take a look at the DecimalFormat class.
floundera at 2007-7-9 22:27:48 > top of Java-index,Java Essentials,New To Java...
# 2
Grrrr! I just realised you are the butthole that got abusive when jverd tried to help you yesterday.NO HELP FOR YOU!
floundera at 2007-7-9 22:27:48 > top of Java-index,Java Essentials,New To Java...
# 3
o well thanks anyways.
MoMo9390a at 2007-7-9 22:27:48 > top of Java-index,Java Essentials,New To Java...
# 4

> Grrrr! I just realised you are the butthole that

> got abusive when jverd tried to help you yesterday.

>

> NO HELP FOR YOU!

No try to help him! I want to see him get angry again; Sun deleted all the posts in the other thread before I got done reading them :(.

Djaunla at 2007-7-9 22:27:48 > top of Java-index,Java Essentials,New To Java...
# 5
isnt that unfortunate.
MoMo9390a at 2007-7-9 22:27:48 > top of Java-index,Java Essentials,New To Java...
# 6

Hmmm. Momo seems like a pretty thick-skulled individual from this topic the other day:

http://forum.java.sun.com/thread.jspa?threadID=5141013

Here's my assistance to you momo: Get the thought of becoming a software developer removed from your mind. It's not the right field of study for you.

warnerjaa at 2007-7-9 22:27:48 > top of Java-index,Java Essentials,New To Java...
# 7
o **** ladies and gentlement this genious just figured out i dont want to become a software developer. NO **** Enstein thats why im asking for help. And why are you in this conversation. No one wants your input so i suggest you stfu.
MoMo9390a at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 8
Got him angry. There you go Djaunl.
warnerjaa at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 9
(Cue the Incredible Hulk soundtrack music...)
DrLaszloJamfa at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 10

> Got him angry. There you go Djaunl.

I can always count on you warnerja.

@MoMo: How do you expect to get help when you insult people? How do you expect to get help when you cannot communicate? How do you expect to get help when someone on the internet launches you into a rage-filled tirade?

Why are you taking a class on Java programming if you don't want to, hate it, and hate everyone associated with Java? Did you do too many lines of cocaine the day you picked your classes?

Djaunla at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 11

> o **** ladies and gentlement this genious just

> figured out i dont want to become a software

> developer. NO **** Enstein thats why im asking for

> help. And why are you in this conversation. No one

> wants your input so i suggest you stfu.

When trying to make fun of someone it generally takes away from it when you spell things wrong. Might want to have a look at how to properly spell Einstein. ;-P

Ps. In case you haven't heard of it before don't bite then hand that feeds you - or to simplify don't piss off the very people you are asking for help from.

Aknibbsa at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 12
And he's besmirching the word [url= http://en.wikipedia.org/wiki/Momo_%28food%29]Momo[/url].
DrLaszloJamfa at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 13
> And he's besmirching the word> [url= http://en.wikipedia.org/wiki/Momo_%28food%29]Momo> [/url].Wow that actually sounds good, albeit a tad bit spicy.
Djaunla at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 14
Tastes so nice they had to name it twice:[url= http://en.wikipedia.org/wiki/Couscous]Couscous[/url][url= http://en.wikipedia.org/wiki/Gado_gado]Gado gado[/url][url= http://en.wikipedia.org/wiki/Momo_%28food%29]Momo[/url]
DrLaszloJamfa at 2007-7-9 22:27:49 > top of Java-index,Java Essentials,New To Java...
# 15
Come on Momo, dance some more for us.
warnerjaa at 2007-7-21 17:41:39 > top of Java-index,Java Essentials,New To Java...
# 16
NO SOUP FOR YOU !!
kavon89a at 2007-7-21 17:41:39 > top of Java-index,Java Essentials,New To Java...
# 17
> And he's besmirching the word> [url= http://en.wikipedia.org/wiki/Momo_%28food%29]Momo> [/url].To me, [url http://en.wikipedia.org/wiki/Momotarou]"momo" means "peach"[/url], but besmirching nonetheless.
jverda at 2007-7-21 17:41:39 > top of Java-index,Java Essentials,New To Java...