Search:

Type: Posts; User: liamb109

Search: Search took 0.15 seconds.

  1. Re: Literally, what's wrong with my code? Separating X and Y coordinates.

    import java.awt.image.BufferedImage;
    import java.awt.*;
    import java.io.File;
    import javax.imageio.ImageIO;

    public class Raster{

    static void drawFlag(Graphics2D g)
    {
    g.setRenderingHint(
  2. Re: Literally, what's wrong with my code? Separating X and Y coordinates.

    I solved the problem I had before. But now I'm getting the error message
    Raster.java:24: cannot find symbol
    symbol : variable ods
    location: class Raster
    ods=new int[]{
    ^
    Raster.java:23:...
  3. Re: Literally, what's wrong with my code? Separating X and Y coordinates.

    The full error code now is:
    Raster.java:25: '.class' expected
    ods=new int[]{
    ^
    1 error
  4. Re: Literally, what's wrong with my code? Separating X and Y coordinates.

    I got that part working. But now I'm having further trouble with the full program that I wasn't displaying earlier because it wasn't relevant. I keep getting the error .class expected on ods=new...
  5. Re: Literally, what's wrong with my code? Separating X and Y coordinates.

    Raster.java:48: illegal start of type
    for (int i = 0; i expected
    for (int i = 0; i expected
    for (int i = 0; i

    Is the error I get.
  6. Literally, what's wrong with my code? Separating X and Y coordinates.

    // your code goes here
    public static void main(String[] args)
    static void drawFlag(Graphics2D g){
    int w=300; int h=208;
    int [] ods=new int[]{
    ...
Results 1 to 6 of 6