Results 1 to 6 of 6
  1. #1
    darked17 is offline Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Unhappy 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:

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by darked17 View Post
    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???
    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.

  4. #4
    darked17 is offline Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Default

    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??

  5. #5
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default

    Do you mean that the graphics/bars can be done on the command prompt, sorta like the following?
    Java Code:
    add       ********
    subtract  ****
    multiply  ************
    divide    ******
    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by darked17 View Post
    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??
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •