March 15th, 2018, 03:58 PM
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];...
March 15th, 2018, 01:37 PM
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....
February 28th, 2018, 01:23 PM
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:
February 27th, 2018, 07:18 PM
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...
February 27th, 2018, 06:45 PM
i added this print statement to print out the array you input:
System.out.println(Arrays.toString(words));
and i get this:
February 27th, 2018, 04:56 PM
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...
February 25th, 2018, 07:50 PM
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 =...
February 25th, 2018, 07:36 PM
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...
February 13th, 2018, 06:58 PM
i found the error!!!
i needed to initialize the variable j outside of the for loop
February 13th, 2018, 06:39 PM
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...
January 16th, 2018, 07:16 PM
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...
January 15th, 2018, 02:08 PM
wow i really over thought that, its that simple. Thank you!
January 14th, 2018, 09:44 PM
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...