@jps You're absolutely correct. I apologize for the misleading information. The message I wanted to get through was horribly worded and I probably should of just posted the link. Again, sorry for the...
Type: Posts; User: Actinistia
@jps You're absolutely correct. I apologize for the misleading information. The message I wanted to get through was horribly worded and I probably should of just posted the link. Again, sorry for the...
I don't see it as well but if you meant the "len-1" in your for loop, then it could easily be explained. First of all, you aren't initializing "len-1" but rather setting up a certain condition for...
Hello everyone,
I've been trying to get my package to work but I keep running into a cannot find symbol error. Since this is a homework assignment, I'll just use broad examples to describe my...
After a quick look, my suggestion for you is to go through your code and write out what each line does, kind of like what you did with your comments. You declare you variables, prompt input for...
I think you should try using println statements to see what's wrong. Try printing out your variables (i.e. discount, insurance). Try and see what happens to discount and insurance when you enter 'f',...
Hey! If you want to use the switch or if/else if statements, I'd recommend reading The if-then and if-then-else Statements (The Java™ Tutorials > Learning the Java Language > Language Basics) and The...
Hey! First of all, I'd like to recommend you take a step back and look at what you've written so far. Get a pen and paper and write out exactly what each thing does. Also, I recommend looking at The...
Just curious but I think your assignment says numbers between 1-100, not 1-1000, unless it was a typo.
import java.util.*;
import java.io.*;
public class TEster {
/**
* @param args
*/
public static void main(String[] args) {
int x;
char Guess;
Well, what exactly do you have a problem with? The code you provide so far fills an array with random integers. Now what else do you have to do? You need to print each integer from the array and in...
Quick question about your sin, cos, and etc, you're using Math.a[....] which is the arc[....]. Were you intending this? or did you just want Math.cos and etc?
Why exactly are you using theAnswer in the main? Think about what the input is for your area method. When you tested for your other methods, how did you test for them? Did you try printing out...
I'd like to recommend looking into scope and visibility. I think you should try looking at this website and hopefully it'll solve your problem. Scope and Visibility in Java
*edit* Well I guess I...
Well, I tried to compile the code you have now and it won't compile. There quite a bit of errors but I'd like to point out that you won't get the values that you're expecting. If you followed what I...
Well, looking at your current code, I think you might have some issues. Logically, I can understand what you're trying to do. You want a and b to be the variables holding the equation. C through g...
I don't think I could offer much help at the moment but first of all, your title kind of turns people off from helping you. We understand that you're confused about your problem but it doesn't make...
First of all, you should wrap you code so that it is easily readable. Next, what is your problem specifically? You posted your code with a line that says "RateOfInflation.java <----...
I would suggest changing your if statements. I think you should read up on if and else if statements to understand why it's doing this. Here's a quick tutorial for if statements.
The if-then and...
I think the coding really depends on what "he" is asking for. I think you should ask for clarification from that person yourself but you could try programming them both ways for the extra practice....
Hi tyeeeee1! First of all, I'd like to mention that I'm still a beginner in java myself, so I'll apologize ahead of time if I give you any false information. Anyways, on to your problem. I'd like to...
First of all, you don't need to bump your posts. Bumping it won't get you help any faster.
Second, you should probably align all your braces along with each other since you have a bunch of nested...
Quick question: Why is it that you have arrSize = 0 and you make j < arrSize? Wouldn't the for loop only run once then, if at all?
*edit* I guess it's to initialize the variable but won't it just...
Thanks for the response. I'm not sure how to implement this sort of thing yet though. I did figure out how to do what I wanted though. It was rather simplistic and I'm kicking myself over it....
I have several ArrayLists with certain values stored in them and I want to check my program to check the above operators. I have tried looking at the ArrayList api and couldn't find anything that...
Just curious but why do you have
int sum = 0;
in your boolean method? It doesn't seem like you do anything with it. I'm not sure what your specific error is but I'm pretty sure that it might...