Search:

Type: Posts; User: ChicoTheMan94

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Re: Skipping parts of if loop (Coin toss Program)

    Omg! I got it, thanks to you both. Why I added i++ to my if statements I'll never know, no duh it was adding an extra i, I did it manually! Face palming incredibly hard, feel like maybe someone...
  2. Skipping parts of if loop (Coin toss Program)

    Hey guys, here's my code:


    /*
    Paulino Rosado
    10/3/2012
    Computer statistics for eight coin tosses
    */
    import java.util.*;
  3. Re: I'm Pretty Sure I Got It Right Yet I Keep Getting Errors

    Yeah, just a couple of syntax errors, it would be like this:

    System.out.println("The sum is "+sum+"/nThe product is "+product+"/nThe average is " +average);
  4. Re: I'm Pretty Sure I Got It Right Yet I Keep Getting Errors

    I've never used %d for output, have you tried using +'s? For example:

    System.out.println("The info here is "+variable for info+"and "+variable for more info); ect?
  5. Re: I'm Pretty Sure I Got It Right Yet I Keep Getting Errors

    Hint: The cannot find symbol error is most usually caused by typos and/or trying to use variables you have not actually initialized!
  6. Re: I'm Pretty Sure I Got It Right Yet I Keep Getting Errors

    What?!
    Your norm is evolving!
    *Amazing norm transformation*
    Congratulations! You're Norm has transformed into a Super Moderator!

    ...
    Congratulations.

    Also, Norm gave you the correct answer....
  7. Replies
    4
    Views
    2,934

    [SOLVED] Re: Cannot Find Symbol

    *Cough*
    Look, the real question here is not who meant to use what, the real question is, how fast can we ignore this and pretend I DIDN'T use circle.

    EDIT:
    Hey I did the frame version without...
  8. Replies
    4
    Views
    2,934

    [SOLVED] Re: Cannot Find Symbol

    Ah yes, ignore that, I fixed that part, was more focused on why g.fillCircle was not being recognized. I'll edit the post code real quick!
  9. Replies
    4
    Views
    2,934

    [SOLVED] Cannot Find Symbol

    /*
    Paulino Rosado
    09/24/2012
    Draw a bullseye
    */
    import javax.swing.JApplet;
    import java.awt.*;
    public class BullseyeApplet extends JApplet
    {
    private void drawCircle(Graphics g, int centerX,...
  10. Re: How to make program ask for options again

    Take a look at this tutorial on switch statements:
    The switch Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)

    It could do what you ask, and you can use the default...
  11. Replies
    4
    Views
    1,140

    Re: HELP PLEASE!

    I'm going to post his code properly formatted, only because I'm not sure if english is his first language, given his hebrew comments and the structure of his OP (No offense meant!)


    import...
  12. Replies
    10
    Views
    1,793

    Re: Area calculator.

    Unfortunately, I don't know anything about NetBeans, but the code works perfectly, no errors. The only thing is it doesn't display the numbers it computes, but it does asks for the variables and...
  13. Replies
    10
    Views
    1,793

    Re: Area calculator.

    I'm using textpad, and just copy/pasting the code it runs perfectly. It asks for variables, it didn't display anything, as helloworld pointed out, but it does ask for the variables. What are you...
  14. Replies
    19
    Views
    2,380

    Re: Whats Wrong? Beginning Code!

    Ugh, I'm sorry. I'm trying to get the hang of this not spoon feeding I promise, I tried not to give any actual answers, and just be vague, guess I could have been more vague. I haven't been doing...
  15. Replies
    19
    Views
    2,380

    Re: Whats Wrong? Beginning Code!

    This took me longer to figure out than I thought. Here's a question, why do you have interest as an int variable instead of a double? This code right here:

    interest = (int)annualInterest / 12; is...
  16. Replies
    19
    Views
    2,380

    Re: Whats Wrong? Beginning Code!

    It would make your code look a lot better if you wrapped it with
    and [ /code] (with no space.)

    Looking over your code, You're calling the math function, yet you don't have it imported, it may...
  17. Replies
    5
    Views
    1,257

    Re: New assignment new problem...

    Newbie has hooked you up, just a small syntax error! I will say this looking through your code though. I have a feeling people are going to be really confused when they guess to high, but the program...
  18. Replies
    3
    Views
    1,313

    Re: Java cant find symbols?

    Awesome, glad it worked. Nice catch with the e and f. Good Luck! :D
  19. Replies
    3
    Views
    1,313

    Re: Java cant find symbols?

    Well, when you call the Math.java.pow you don't actually need to add the .java in there, that's why it's giving you the cannot find symbol error, afterwards you're going to run into initialization...
  20. Re: Exception in thread "main" java.lang.NullPointerException problem.......

    Hello!
    Please wrap your code using the tags [code=java] and ending the code with [ /code].
    Is that the full error message that gets print out? It doesn't tell you which line the null value is on?...
  21. Replies
    5
    Views
    1,406

    Re: instructions on assignment

    Look into using switch statements, I believe that would allow you to do what yo wish, with switch statements you can have the user input a int (in your case 1 to start 2 to drive 3 to stop) and...
  22. Re: Java program inputting month name and outputting month number and number of days

    Sorry, I had to do a similar assignment, so just copy/pasted what I had because I wrote in month numbers manually, it wasn't an answer to his assignment, though, since he has to use if/else...
  23. Re: Java program inputting month name and outputting month number and number of days

    Does your instructor specify that the month integer value has to be a variable, and can't just be entered manually by you? IE:


    ...
  24. Replies
    2
    Views
    1,107

    Re: Can someone help me(Simple coding)

    Do as he says!

    Here's what's wrong

    You're working with decimals, so when you're returning decimals you're returning variable type double, yet I'm seeing int's declared! Change all your...
  25. Re: Need Help, Not sure how to fix basic error!

    Please for the love of god dont let it be this, I'll feel too stupid T_T
Results 1 to 25 of 27
Page 1 of 2 1 2