Thanks! That was exactly the problem, I thought there was a size() method for Vectors but I couldn't remember, and the only reason I am using vector for this is because the assignment calls you using...
Type: Posts; User: Exiled
Thanks! That was exactly the problem, I thought there was a size() method for Vectors but I couldn't remember, and the only reason I am using vector for this is because the assignment calls you using...
I am having a strange problem with my Guessing Game program. The program takes an argument integer between 1 and 100 as a secret number, and the program will guess random numbers until it finds your...
Ahh I guess I could adapt my code to work using subtraction although I'm not sure if that would make it less efficient. I'm pretty sure there's a way to get it to work with modulus but I can't wrap...
Thanks for the reply, aesguitar. I implemented what you suggested which I'm pretty sure was a copy/paste error but now I am getting a new error saying mod is not positive. If it helps I will just...
Thanks for the reply! So how exactly might I fix this? Basically, I started out using integers and am converting to BigInteger. My code for using integers is as follows and I need BigInteger to do...
I'm trying to make a gui calculator that will find Euclid's GCD and LCM from two number inputs. My problem is that no matter what inputs I enter, the GCD is always giving an output of 0, thus making...
Thanks copeg, that's what I was missing! It runs perfectly now and outputs exactly what it's supposed to. :) Here is the updated code:
package searcher;
import java.util.*;
import...
I am having a problem with the output of my term searching program. When I run the program, it seems to work okay but the problem is that when i search a term that is in the ArrayList position of 3...
*Updated Code*
Yea i noticed that heh, It is for the spacing so that the single digit days spacing changes when you get into double digit days so that everything stays lined up with the weekday columns, in which in...
**UPDATE** I have figured out the problem to the extent that I am only in need of help to get the user desired start day for the month to be the first day for the month!
Here is my updated code:
...
Hey guys, I am having trouble figuring out how to get my calendar program to function properly. It's part of a homework assignment and the problem asks for a java program using nested loops to print...