Results 1 to 6 of 6

- 04-13-2009, 06:58 PM #1Member
- Join Date
- Apr 2009
- Posts
- 4

- Rep Power
- 0

## Hi new to java and need help please!!!

Hello my name is Ed i em new to java in school we use JCreator Pro and i have home work a small program where i can introduce numbers for example 2,3,1,4,3,6,3,11,9,3,2,3 and i need it to tell me wich number is repeated and how many times in this case it would be 3 and its repeated 5 times any help?? please ??

Also does any one know how to do a grafic with this kind of software we are bearly in introduction of the software but teacher wants us to do a program that for example will add and the result will be in a grafic kind like excel but we cant use it any other ideas please???

Hope you guys can help me thanks....:confused:

- 04-13-2009, 07:06 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1

- Rep Power
- 27

What you have tried so far?

The thing you have to do is, take each element and compare it with the whole list you have. While you find the same in a different location, increment the count by one.

- 04-13-2009, 07:09 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1

- Rep Power
- 27

Not much clear what you want to know. I guess you are talking about graphics, or UI design. In Java for UI designing use Swing or AWT packages. Those are standard packages with the JDK version. What's the connection with Excel and graphic. If you want to write something to an Excel workbook, nothing to do with UI directly. You have to do it in background, while the foreground is the UI.

- 04-14-2009, 06:58 PM #4Member
- Join Date
- Apr 2009
- Posts
- 4

- Rep Power
- 0

Well the thing here reagarding excel is that for example i have 4 basic math problems add, subtract, multiplication, ok so lets say i do 2 operations for each basic math problem 2 add, 2 subract, 2 multiply and the results wich are going to be 6 results need to be in a graph basic one does not need to be extreamly high graphical you know the bars but the issue is i cant use Excel or atleast use it but with discresion you know hidden any ideas on how to do that??

- 04-14-2009, 07:33 PM #5
Do you mean that the graphics/bars can be done on the command prompt, sorta like the following?

Java Code:add ******** subtract **** multiply ************ divide ******

CJSL**Chris S.**

**Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.**

- 04-15-2009, 04:45 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1

- Rep Power
- 27

Ok, first of all you must have a clear approach for the mathematical solution. I'm not clear what you exactly want, the way Chris explain?

Read more about Apache POI. It's all about working with MSOffice in Java.

Apache POI - Java API To Access Microsoft Format Files

## Bookmarks