Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~12.7K People Reached
Favorite Tags
Member Avatar for Cory_1

I am having trouble with an OZ Program (Mozart Programming). I have a code to find the maximum element in a list. The code I have so far is: local fun {MaxList L1} case L1 of nil then 0 [] X|Xr then if {MaxList Xr}>X then {MaxList Xr} else X …

0
242
Member Avatar for Cory_1

I am attempting a heap sort that sorts from lowest to highest. My code runs and displays, but I have some issues. The output I get is: The values in the heap array are: 8 9 2 3 4 1 5 6 7 Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 9, …

Member Avatar for Taywin
0
238
Member Avatar for Cory_1

I am writing a code that reads a user-input text file, and displays all words(excluding duplicates), and displays them in ascending order. My code runs correctly, and displays the words. The only problem are quotation marks. I uploaded a sample from a fanfiction I wrote a long time ago, and …

Member Avatar for JamesCherrill
0
594
Member Avatar for Cory_1

I am writting a code to show the number of ways we can pick k # of objects from n total # of objects, and order them without repetition(n choose k). I am given the recrusive for public static long tough(int x, int y) { if (x < y) return …

0
172
Member Avatar for Cory_1

I'm given a code that asks us to have the user input a set of integers(they can be positive or negative). Then the code goes through the list and counts the occurence of each number. Once it reaches the end, the code displays ONLY the number with the most occurrences, …

Member Avatar for hericles
0
239
Member Avatar for Cory_1

I am trying to work on a code for extra credit in my Programming class. The question asks for the user to input a text file, and display all the words in that file(including duplicates) in ascending order. After writing the code several different times over the course of four …

Member Avatar for JamesCherrill
0
2K
Member Avatar for Cory_1

I am attempting to use generics that will sort an ArrayList in ascending order as extra practice for my upcoming mid-term exam. I am given the main method body, and the method header for the sorting method, and am asked to write the method body for the sort method. However, …

Member Avatar for JamesCherrill
0
4K
Member Avatar for Cory_1

I am writing a program for extra practice from my book on finding the max element in array using Java Generics. My Code so far is: public class GenericMax { public static void main(String[] args) { Integer[] numbers = {1, 2, 3}; //Creates array of integers System.out.println(max(numbers)); String[] words = …

Member Avatar for JamesCherrill
0
6K