Search:

Type: Posts; User: Solinta

Search: Search took 0.19 seconds.

  1. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    Yup - got that :)
    Fixed my problem too - thanks!!!!
  2. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    Here is my current code:


    import javax.swing.*;
    import java.awt.*;
    import java.util.Scanner;


    public class Heart extends JFrame{
  3. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    This is the issue:
    2656
    It should look like:
    2657

    Also the issue is occurring whenever I add another page.drawstring("-"); line of code.
  4. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    I have been crashing a number of lectures at the university. I would read the textbook I bought, only a friend is using it. I have done what you recommended, which has made my programme MUCH tidier -...
  5. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    Is there any chance you could show me how to do this? My every attempt is ending in failure...

    --- Update ---

    Also I recently added this to my code - it works fine, but for some reason it seems...
  6. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    import javax.swing.*;
    import java.awt.*;

    import java.util.Scanner;


    public class Heart extends JFrame{
  7. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    Sorry! If I enter 1 as my input it works fine, only asks me to enter another input (and if I do, that doesn't work). However, for any value over 1, Ray3 goes into the completely wrong place.

    ---...
  8. Re: First Programme after Hello World - Convex Lens - Why is my code going crazy?

    I'm confused as how to do this - I shifted the input to this but it is still crazy


    public static int input(){
    System.out.println("Enter positive distance from lens (in cm):");
    Scanner...
  9. First Programme after Hello World - Convex Lens - Why is my code going crazy?

    It was all going smooth until I added the equations so that it could calculate the lines for ray3 on its own... Then it started looping the input
    and returning only a single value for both y1 and...
Results 1 to 9 of 9