Search:

Type: Posts; User: Actinistia

Page 1 of 3 1 2 3

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,601

    Re: Using i-1 in programs

    @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...
  2. Replies
    4
    Views
    1,601

    Re: Using i-1 in programs

    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...
  3. Replies
    1
    Views
    1,514

    [SOLVED] Compiling Package, cannot find symbol

    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...
  4. Re: My output is in the wrong order! (if-else) PLEASE HELP

    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...
  5. Replies
    3
    Views
    1,506

    Re: Need help with switch case

    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',...
  6. Replies
    3
    Views
    1,506

    Re: Need help with switch case

    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...
  7. Replies
    1
    Views
    933

    Re: What's up with this if code?

    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...
  8. Replies
    10
    Views
    4,631

    Re: Having trouble understanding Int Logs.

    Just curious but I think your assignment says numbers between 1-100, not 1-1000, unless it was a typo.
  9. Re: Problems with a "if-then and if-then-else" statements

    import java.util.*;
    import java.io.*;
    public class TEster {

    /**
    * @param args
    */
    public static void main(String[] args) {
    int x;
    char Guess;
  10. Replies
    2
    Views
    1,158

    Re: i need guidance por favor

    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...
  11. Replies
    11
    Views
    1,450

    Re: Printing from a Method

    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?
  12. Replies
    7
    Views
    1,157

    Re: Code only outputs 1's

    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...
  13. Replies
    7
    Views
    1,157

    Re: Code only outputs 1's

    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...
  14. [SOLVED] Re: Helpppp meeeee, I am stuckkkk and probably going to get violent any minute!!!!

    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...
  15. [SOLVED] Re: Helpppp meeeee, I am stuckkkk and probably going to get violent any minute!!!!

    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...
  16. [SOLVED] Re: Helpppp meeeee, I am stuckkkk and probably going to get violent any minute!!!!

    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...
  17. Replies
    1
    Views
    1,008

    Re: Whats going wrong here?

    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 <----...
  18. Replies
    5
    Views
    1,189

    [SOLVED] Re: Some Quick Help PLZ

    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...
  19. Replies
    3
    Views
    1,388

    Re: Cannot figure out how to code this...

    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....
  20. Replies
    5
    Views
    1,239

    Re: New assignment new problem...

    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...
  21. Replies
    2
    Views
    1,224

    Re: Help with Sudoku function please

    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...
  22. Re: i'm getting th error, when i put a method to get the position of the smallest n

    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...
  23. Replies
    2
    Views
    1,784

    [SOLVED] Re: Iterating through an ArrayList

    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....
  24. Replies
    2
    Views
    1,784

    [SOLVED] Iterating through an ArrayList

    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...
  25. Replies
    3
    Views
    1,339

    Re: All Digits only

    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...
Results 1 to 25 of 67
Page 1 of 3 1 2 3