Search:

Type: Posts; User: dazzle1218

Search: Search took 0.16 seconds.

  1. Replies
    5
    Views
    515

    How to read words in a file?

    Hi, How do I read one word at a time in a .txt file? Thanks
  2. Replies
    5
    Views
    515

    How to read in a file?

    Hi,

    I was just wondering, how do I read a .txt file into my program even though i do not know the name of the file? Thanks :)
  3. Replies
    1
    Views
    752

    Histogram equalization Help Please!

    BufferedImage equalizeimage= new BufferedImage(source.getWidth(), source.getHeight(), source.getType());

    int red;
    int blue;
    int green;
    int newRGB = 0;


    //to compute the...
  4. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    I know i have to do that but i dont know how to write it out so that i dont get any errors

    --- Update ---

    can you please provide an example as to what my code should look like?
  5. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    i have been trying that for about the last 4 hours, i really have no idea how to do it. I honest dont understand the logic a code follows. Can you PLEASE help????
    Basically
    Execute a time step for...
  6. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    do you know how to write the section of code under : public void executeStep() ????
  7. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    <package langton;

    public class LangtonAnt{

    import simulation.Ant;
    import simulation.Grid;
    import simulation.Simulation;
    import core.Direction;
  8. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    Basically i have been given a template for the code that i need to complete, in the end it should out put this:

    Description: Write a program to simulate an “ant” moving one step at a time on a...
  9. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    <package simulation;

    /**
    *
    * Simulation class
    *
    * @author _________
    *
    */
    public class Simulation {
  10. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    <package langton;

    public class LangtonAnt{

    import simulation.Ant;
    import simulation.Grid;
    import simulation.Simulation;
    import core.Direction;
  11. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    here is the additional information


    package core;

    public enum Direction {
    NORTH, SOUTH, EAST, WEST;
    }

    --- Update ---
  12. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    package core;

    public enum Direction {
    NORTH, SOUTH, EAST, WEST;
    }

    --- Update ---

    package simulation;
  13. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    package simulation;

    /**
    *
    * Simulation class
    *
    * @author _________
    *
    */
    public class Simulation {
  14. Replies
    19
    Views
    1,144

    Re: Langton's Ant. Can anybody complete it?

    package simulation;

    /**
    *
    * Grid class
    *
    * @author _________
    *
    */
    public class Grid {
  15. Replies
    19
    Views
    1,144

    Langton's Ant. Can anybody complete it?

    package langton;

    public class LangtonAnt{

    import simulation.Ant;
    import simulation.Grid;
    import simulation.Simulation;
    import core.Direction;
Results 1 to 15 of 15