Yup - got that :)
Fixed my problem too - thanks!!!!
Type: Posts; User: Solinta
Yup - got that :)
Fixed my problem too - thanks!!!!
Here is my current code:
import javax.swing.*;
import java.awt.*;
import java.util.Scanner;
public class Heart extends JFrame{
This is the issue:
2656
It should look like:
2657
Also the issue is occurring whenever I add another page.drawstring("-"); line of code.
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 -...
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...
import javax.swing.*;
import java.awt.*;
import java.util.Scanner;
public class Heart extends JFrame{
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.
---...
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...
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...