User Profile

Collapse

Profile Sidebar

Collapse
maggiexoxo
maggiexoxo
Last Activity: Apr 30 '13, 12:35 AM
Joined: Apr 27 '13
Location: San Francisco
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • maggiexoxo
    started a topic How do I print the occurrence of the number once?
    in Java

    How do I print the occurrence of the number once?

    my code asks the user for a number N
    then it asks the user again for N numbers
    it sorts the numbers ascending and print's it with the number of occurrences.

    prints:
    How many integers should I collect? 5
    1: 2
    2: 4
    3: 4
    4: 5
    5: 6

    2: 1
    4: 1
    4: 1
    5: 1
    6: 1

    how I want it to print:
    How many integers should I collect? 5
    1: 2
    ...
    See more | Go to post

  • maggiexoxo
    started a topic How do I create a user defined array size?
    in Java

    How do I create a user defined array size?

    I'm trying to create a program that prompts the user for a number N. This number will be used to prompt the user N times to provide an integer.
    See more | Go to post
    Last edited by maggiexoxo; Apr 27 '13, 03:41 AM.
No activity results to display
Show More
Working...