File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Basic functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Basic functions" Watch "Basic functions" New topic
Author

Basic functions

Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 264
Hi

Can any body pls tell us how write the following functions

These functions need to be applied for both iterative and non-iterative rules
1.Min
2.Max
3.String Concatenation � this is currently available only as a non-iterative function. this needs to be available for arrays also
4.Left � string function
5.Round � Format needs to be, Round(<Variable>, 1000)
6.Min(ArrayName, Column), should return the minimum of values in the array.
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
Since most (all?) of these problems have implementations available, can we assume that this is for some homework assignment?
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 264
yes this is for assignment ...can u pls tell us any logic or sample code
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
A couple of suggestions:

- Ask about a specific problem you are having. This is more likely to get a response

- Better yet, tell us what you think is the proper solution for one (or more) of your methods, and ask what others think of this solution.

I don't think you will have a lot of luck around here getting people to do your homework for you.

Just as an example, tell us in your own words what the function
4. Left � string function
is supposed to do. What information do you need to accomplish this? In the context of this function, what does iteratively mean? When you can answer these questions, I will gladly help you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Basic functions
 
Similar Threads
Estimation (Agile Vs Non-Agile)
validation and ajax woes
What's the hardest part?
List of Database in J2ME
Method Vs Function