Search:

Type: Posts; User: Kranti1992

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,161

    What does this short part of a code do?

    public boolean same_State (Search_State s2) {
    Jugs_State js2= (Jugs_State) s2;

    return ((j1==js2.get_j1())&& (j2==js2.get_j2()));
    }

    I just want to know what the part :
    ...
  2. Replies
    10
    Views
    1,777

    Re: Need help with Question

    Yes, scanner will allow any user to input numbers or letters into command prompt or the console box if you are using Eclipse.

    So create a scanner variable, and use that to read three numbers off...
  3. Replies
    10
    Views
    1,777

    Re: Need help with Question

    Ok first of all, this should be pretty basic so don't worry.

    Now you need to use java's scanner to read input from the user, meaning you have to first import scanner:

    import java.util.Scanner;...
  4. Help with making classes as a variable type!

    Hi, I'm quite new to java, and I've come to the point where there are just some things that I don't get no matter where I look or what I read up.

    I've been confused with using a created class as a...
  5. Help with assignment about a board game (enum and array question)

    I posted another question about this a couple hours ago, and though it had 30 views it had no replies so I'm attempting to explain it better this time as my english isn't good and might have rushed...
  6. Re: Need help with a Java Assignment regarding enums and arrays

    How come nobody can help, I thought this would be easy for some of the advanced programmers, as this is only an assignment mid-way through a first year course..
  7. Need help with a Java Assignment regarding enums and arrays

    I have an assignment to make a game of breakthrough by creating a class that links provided classes together and makes the game playable.

    The enum class is provided below.

    I have just started,...
  8. Need help with a program recording Lego Robot (Lego Mindstorms) movement.

    Hi guys, I'm a new to java only been doing it for a couple months. Recently got an assigment to make a program in order to make a lego robot (known as lego mindstorms) programmed to move around an...
  9. Re: Converting a picture made up of 0s and 1s into a colored picture??

    Ok thank you very much, reading my previous post do you think my array and loop is on the right track?
  10. Re: Converting a picture made up of 0s and 1s into a colored picture??

    Ok thanks, I just put them into a 2d array so it prints out the shape of the man like shown in the attached pic above (just one man) but in 1s and 0s. I did:
    int[][] picture =...
  11. Re: Converting a picture made up of 0s and 1s into a colored picture??

    How does this assignment link to arrays and how would I use arrays to do it though? And also loops should be included. Sorry I'm very new to java, in first year course only in the sixth week, which...
  12. Re: Converting a picture made up of 0s and 1s into a colored picture??

    852Hey thanks for the reply, yes we can do anything we want like count the number of digits in the line or size of the image before we do the program. We just need the program to convert those into a...
  13. Converting a picture made up of 0s and 1s into a colored picture??

    I got a recent task of converting a bunch of 0s and 1s that create a sort of image into a colored picture (Attached txt is the 0s and 1s given to me in the task). The 1 is
    supposed to be converted...
Results 1 to 13 of 13