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.

~770 People Reached
Favorite Forums
Favorite Tags
Member Avatar for jot121

import java.util.ArrayList; import java.util.Arrays; public class SearcherAndSorter { private ArrayList<Integer> values; private int counter; public SearcherAndSorter() { values = new ArrayList<Integer>(); } private void insert(int value, int[] sorted, int count) { /*for(int j = 0; j < values.size(); j++) { count++; if(value < values.get(j)) { values.add(j, value); return; } } …

Member Avatar for Patil Raj
0
122
Member Avatar for jot121

here is the details I got: 1. Create a class called 'GuessMyNumber'. The constructor should chose a random number between 1 and 100. There should be a method 'guess(int guess)' that returns -1 if the guess is too low, 0 if the guess is correct, and 1 if the guess …

Member Avatar for NormR1
0
213
Member Avatar for jot121

[CODE]import java.util.ArrayList; public class CSStudent { String[] requiredGeneralClasses = {"biology", "calculus", "chemistry", "english", "physics", "psychology", "economics"}; String[] requiredInMajorClasses = {"algorithms", "data structures", "numerical analysis", "graphics, databases"}; String[] completedClasses; int[] gradeForCompletedClasses; public CSStudent() { completedClasses = new String[10000]; gradeForCompletedClasses = new int[10000]; } public void completeClass(String classs /*class*/, int gradeOnHundredPointScale) { …

Member Avatar for NormR1
0
117
Member Avatar for jot121

[CODE] public static Integer[] getTopThree(Integer[] values) { int max1 = Integer.MIN_VALUE; int max2 = Integer.MIN_VALUE; int max3 = Integer.MIN_VALUE; //assuming integer elements in the array for (int i = 0; i < values.length; i++) { if (values[i] > max1) { max3 = max2; max2 = max1; max1 = values[i]; } …

Member Avatar for hfx642
0
134
Member Avatar for jot121

Hey so I have create a class FunWithIntegers. Add a method to the class called GreaterThanFive. Have that method accept an array of int. The method should allocate a new array that contains only the values from the first array that are greater than 5 and return it. [CODE] public …

Member Avatar for stultuske
0
184