This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am very very new to JAVA. I have kniowledge of the various structures of the language, but no experience. I wonder if anyone could give me an idea on the best way to go about programming a formuly that gets certain parameters (of which some are formulas by themslves) as input and gives out a value. Just an idea on how to start will be of help. Thanks a lot.
Try working out a formula which takes an int number as its input and returns an int which is the square of its input. You may get overflow errors if you pass a parameter such that |i|>46340. The easiest way to get i^2 is i * i.
Se what you can make of that, and good luck with it.
Have you got any books? Have you been through the Java Tutorials? Have you got anybody nearby who can teach you? You will find learning programming very difficult without at least some of those resources.
Joined: Mar 17, 2008
Thanks for the reply man. I have taken tutorials and have books, i understand a couple of things, but my problem is putting it together to . I want to start somewhere and then continue learning. YOu know learning to program without a project doesn't really do much. I want to know how i can start programming this formula. Do i need for axample just a class with methods or do i declare classes for each parameter which is itself dependent on some other parameters ?? You know that kind of stuff.