a method that returns an int etc

hey guys i need help creating a group of the following methods that can be used to hide a JOptionPane code:

getInt Returns an integer value

getDouble Returns a double value

getString Returns a string

outputMessageOutputs a messge via a JoptionPane

i also need write a main that will demonstrate the use of these four methods.

[362 byte] By [Steve198a] at [2007-10-3 10:18:19]
# 1
And your problem is?
sabre150a at 2007-7-15 5:39:22 > top of Java-index,Java Essentials,Java Programming...
# 2

> hey guys i need help creating a group of the

> following methods that can be used to hide a

> JOptionPane code:

>

> getInt Returns an integer

> value

> getDouble Returns a double

> value

> getString Returns a string

> outputMessageOutputs a messge via a JoptionPane

>

> i also need write a main that will demonstrate the

> use of these four methods.

Sure, but you have to ask a question.

So, where are you stuck?

prometheuzza at 2007-7-15 5:39:22 > top of Java-index,Java Essentials,Java Programming...
# 3

Have you ever used a JOptionPane?

If so, you should know that writing a "wrapper" method, such as these are, for simple implemetations of one, is extremely easy and straight-forward.

If you have not ever used a JOptionPane, then investigate the Swing tutorials and the JOptionPane API doc. There you will find all you need.

masijade.a at 2007-7-15 5:39:22 > top of Java-index,Java Essentials,Java Programming...