Search:

Type: Posts; User: kram

Search: Search took 0.29 seconds.

  1. Replies
    1
    Views
    851

    Need Help! Out of bounds error on ARRAYS!!

    My Task:
    ---Example: 2 2 3 20 10 7 9 6 8 8 8 2 9 12 14 5 5 5 5 19
    plateau = 6 8 8 8 2 because 8 is the longest sequence of identical
    numbers where the numbers to the left and right are lower.

    ...
  2. Replies
    2
    Views
    590

    Re: Need Help! For loops and if/else

    Thank You sir, why do i make things so complicated.
  3. Replies
    2
    Views
    590

    Need Help! For loops and if/else

    I don't see what is wrong i wrote it down on paper but here is the task i am trying to accomplish.

    Print out a count-by-count matrix of asterisks and percent signs, alternating by row
    Example:...
  4. Replies
    2
    Views
    578

    What do i have to do to fix my code?

    844
    ~o)
    Basically i am just trying to search for a name within the .txt and than print line for each number after the name.
    For example: Mark 0 0 0 13 23 12 56 23 53 12 45

    i get an exception...
  5. Thread: Noob needs help!

    by kram
    Replies
    1
    Views
    354

    Noob needs help!

    accepts two strings and returns the character index of the position
    where the second string begins in the first; returns -1 if the second string does not appear in the first.

    Examples:
    IN:...
  6. Thread: Jumble

    by kram
    Replies
    4
    Views
    1,326

    Re: Jumble

    Wouldn't i need the for loop because it would grab the specific character from the string.
  7. Thread: Jumble

    by kram
    Replies
    4
    Views
    1,326

    Jumble

    String jumble(String): accepts a string and returns a jumbled version of the original: for this method, jumbled
    means that two randomly chosen characters other than the first and last characters of...
  8. Thread: All Digits only

    by kram
    Replies
    3
    Views
    529

    Re: All Digits only

    Alright thanks. int sum = 0 was just from another code i forgot to delete it.
  9. Thread: All Digits only

    by kram
    Replies
    3
    Views
    529

    All Digits only

    In this program allDigits(String): accepts a string and returns true if EVERY character is a digit, otherwise false.

    The code seems really simple but i seem not to be getting it here is my code:...
  10. Re: Checking Code: Getting the Unicode value of each character from a string.

    Well every character has value i have to produce that value. I would believe that it is true. My string is "ABC" so as i access the string with s.charAt(i) grabbing that first character 'A' it is...
  11. Checking Code: Getting the Unicode value of each character from a string.

    /* Something is wrong here not exactly sure i am a beginner. I cannot use ANY classes.
    EXAMPLE: if argument value is "ABC" then the return value should be "198".
    Help! Thanks in advance^:)^*/
    ...
Results 1 to 11 of 11