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.

0 Endorsements
~11.9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Alpdog14

I have a Coin class that compares weight and value and I need help developing a hashcode and Junit tests to test them, here is my class: [CODE]public class Coin implements Comparable<Coin>{ public static final int CENT=1, NICKEL=5, DIME=10, QUARTER=25; private int value; private double weight; public double getWeight(){ return …

Member Avatar for JamesCherrill
0
180
Member Avatar for Alpdog14

I have a java project that I need help on. The program is for word occurrences and I have a basic add() and frequency() methods I need help creating, not sure how to begin. here is the skeleton I am working with: [CODE]@Override public void add(final String word, final int …

Member Avatar for LReynolds
0
172
Member Avatar for Alpdog14

I have this hashCode function that I have been trying to implement with Eclipse but my Tests keep failing. I am trying to write a Hashcode function that returns that last 2 or 3 chars of a word or number. Here is my current code: [CODE]public int hashCode(String value){ String …

Member Avatar for BestJewSinceJC
0
187
Member Avatar for Alpdog14

I was wondering if someone can help me with how to convert my code so that it converts the cents to dollars and also round to the nearest cent: [CODE]public class Subscription { private int price; private int length; public Subscription(int p, int n) { price = p; length = …

Member Avatar for BestJewSinceJC
0
11K
Member Avatar for Alpdog14

I was wondering if someone can help me, I have this snippet of code that I know is giving me an issue but cannot figure why: [CODE]public D put (K key, D data){ DataTreeNode<K,D> dtn = insert(key); if(key.equals(dtn.key())) [B]return dtn.data();[/B] else return null; }[/CODE] I know I want the [B]return …

0
64
Member Avatar for Alpdog14

I am writing a small Java program and need help using a simple search code. It is not compiling. [CODE]public int indexOf(EltType e) { int i=0; for (i = currsize; i < currsize; i++){ things[i] = e; e.equalts(get(i)); } return -1; }[/CODE] Basically I want to get the position number …

Member Avatar for javaAddict
0
158
Member Avatar for Alpdog14

Hi, This is my introduction, I am a grad student going for my masters in Computer Science Web development. This community look better than the others I came across so I thought it would be beneficial to join.

Member Avatar for Alpdog14
0
47
Member Avatar for Alpdog14

I am very new to XML & XSL but I know there is a way to build blog aggregators. I have a XML document that pulls the blogs in with the URI: [CODE]<?xml version="1.0"?> <!DOCTYPE feeds SYSTEM "feeds.dtd"> <feeds> <feed name="Mary Rose's Blog" provider="Blogabond" spec="rss" version="2.0" uri="http://www.blogabond.com/rss/rss.aspx?UserID=7835"> <keyword name="meow"/> </feed> …

0
227