Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

How to use method pow()? [based on resistance value question]

 
may tan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello Pple..

Hmm.. anyone knows of a simple yet efficient ways to
calculate resistance values of a resistor with 3 color bands??

Means user enter 3 color into textfield:
eg: red, orange, grey.
so the program will calculate total value entered by user.

The value for red - 2, orange - 3, brown - 1.

i know i need to use the method pow() for multiplier.
But i'm not very sure what to be types inside..

Thanks for your attention!!
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Report post to moderator
Double post, please respond here
 
    Bookmark Topic Watch Topic
  • New Topic