CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rcheeks23

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    5,950

    sorting an array

    Hi I ran into this practice problem and it states


    Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the people by their...
  2. Replies
    2
    Views
    1,882

    Re: two dimensional array explanation

    thank you, I guess I was thinking about it too hard.
  3. Replies
    2
    Views
    1,882

    two dimensional array explanation

    Hey guys, was working one this practice problem and was able to solve it but was looking at two other solutions that seemed more simple but I don't completely understand them. was wondering if...
  4. Replies
    4
    Views
    13,589

    Re: Names with Roman Numerals

    I tried printing it out by adding the line of code you provided in my methods



    public String getLast(String input){
    String[] parts = input.split(" ");
    String last = parts[1];...
  5. Replies
    4
    Views
    13,589

    Names with Roman Numerals

    I had an interview question a couple months ago and one of the questions was to accept a name with a roman numeral up to the number 50.

    1)you ask the user how many names they are going to put in....
  6. Replies
    11
    Views
    31,553

    Re: Counting Vowels in an array of strings

    Wow thank you Norm for teaching me how to test and debug better to find exactly where my issue was and thank you 2kaud for explaining a good way of fixing my problem and needing less loops!! :thumb:
  7. Replies
    11
    Views
    31,553

    Re: Counting Vowels in an array of strings

    so after doing what you told me i saw that i needed to save the vowelCount outside of the if statement. Also added a variable of char x = temp.charAt(j) to make the if statement a little cleaner. So...
  8. Replies
    11
    Views
    31,553

    Re: Counting Vowels in an array of strings

    i added this print statement to print out the array you input:




    System.out.println(Arrays.toString(words));



    and i get this:
  9. Replies
    11
    Views
    31,553

    Counting Vowels in an array of strings

    The problem i am working on now states:

    A method named vowels that accepts a String array named alpha. The method will return the index of the
    String that contains the most vowels. If there is a...
  10. Replies
    1
    Views
    7,515

    Re: printing out the return of an array

    so i figured it out. After walking away from it. wasnt sure how to delete the post but i changed the part where i print out and call the method a little by doing this.



    int[] sum =...
  11. Replies
    1
    Views
    7,515

    printing out the return of an array

    I am trying to print out the return of my method but i keep getting something different. The problem states:

    Implement a method named totals that takes a two dimensional integer array named array...
  12. Replies
    2
    Views
    5,997

    Re: Adding every 5 numbers in an array

    i found the error!!!

    i needed to initialize the variable j outside of the for loop
  13. Replies
    2
    Views
    5,997

    Adding every 5 numbers in an array

    Currently I am stuck on a problem, not sure what I'm over looking. The problem is:

    The method named group will find the sum of each group of 5 elements beginning from the start of the array. If...
  14. Method returning multiple values using an array.

    I've been working through problems I found from when I was in school. Came across this one problem where I am a bit confused. The question states:

    Implement a method named positive. The method...
  15. Re: Reading an array to find the middle char from two given chars

    wow i really over thought that, its that simple. Thank you!
  16. Reading an array to find the middle char from two given chars

    I am trying to refresh my java memory from when I was in college so i decided to do over some practice exercises i had. I am stuck one this question.

    Implement a method named letter that will ask...
Results 1 to 16 of 16





Click Here to Expand Forum to Full Width

Featured