Search:

Type: Posts; User: Kimimaru

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    6,869

    Re: Sobel Operator (Edge Detection)

    Sorry about that; I italicized the text there and it didn't work well. It's now bolded.

    Anyway, my professor said that on the first array index of pictureArray of "Gx += (sobel[k][l] *...
  2. Replies
    4
    Views
    6,869

    Sobel Operator (Edge Detection)

    Hello everyone! I have a program that allows you to do 4 things by typing in the corresponding letter for each: (r) read a .pgm file, (S) smooth the file, (E) use edge detection on the file, (s) save...
  3. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    Thanks for the advice DanBrown.

    Unfortunately, I had to study all of last week for midterms, so I didn't have the full 2 weeks I needed to spend on this program. On top of this, I have a lot of...
  4. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    Okay, left-justification is working fine! Now I need to include right-justification and centered text. My right-justfication code is as follows:


    public static void Rformat(int winput, String...
  5. Re: Read A File and Store Values into a 2-Dimensional Integer Array?

    Sorry for double posting, but I just want to say that this particular assignment is due Friday and I'd like to get it done as soon as I can, considering all the other work I have to get done this...
  6. Re: Read A File and Store Values into a 2-Dimensional Integer Array?

    //Stores data into an array
    while ((line = reader.readLine()) != null)
    {
    StringTokenizer line2 = new StringTokenizer(line);

    while (line2.hasMoreTokens())
    ...
  7. Re: Read A File and Store Values into a 2-Dimensional Integer Array?

    Why would I need to remove all the spaces? I need to have a space after each number.

    Also, when did I tokenize a string? My professor told us we had to use the InputStream, but he barely explained...
  8. (SOLVED) Read A File and Store Values into a 2-Dimensional Integer Array?

    Hello! On top of the other program I have is one that deals with taking values from a file, "input.txt" (click on the file name), storing those values into a 2D array, and printing them out like so:...
  9. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    This is what I came up with so far:


    while(sinput2.hasMoreTokens())
    {
    String temp = sinput2.nextToken();
    System.out.println(temp.length());
    count += temp.length();
    ...
  10. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    I tried: "count = sinput2.length();" and "count = sinput2.length;" and it says it cannot find the symbol of length. I've used length for arrays and normal strings and it worked; I'm not sure why it's...
  11. Replies
    10
    Views
    4,037

    Re: Getting length of individual token?

    Thanks for the feedback, but my problem was that I didn't know how to get the length of each token. What function can I use to do so?
  12. Replies
    10
    Views
    4,037

    (SOLVED) Getting length of individual token?

    Hello! I'm making a program that formats inputted text based on the line width the user inputs and the type of formatting the user chooses (left-justified, right-justified, centered). I'm not allowed...
  13. Replies
    6
    Views
    3,032

    Re: Bigger triangle made up of multiple ones?

    Okay, thanks! Writing the pseudo code helped me quite a bit, but I still haven't got it so far. I'm VERY close, but I'm definitely overlooking something. Here's what I got so far:


    for...
  14. Replies
    6
    Views
    3,032

    Re: Bigger triangle made up of multiple ones?

    I would draw a bigger triangle out of smaller ones.
  15. Replies
    6
    Views
    3,032

    Bigger triangle made up of multiple ones?

    Hey everyone! I have an assigment due next Monday, and in this assignment I must create an ASCII triangle in Java. I've managed to do that, but for extra credit I have to do something like this:
    ...
  16. Replies
    2
    Views
    2,775

    Re: Insertion Sort

    That helped me a little bit, but unfortunately I still don't completely understand. Thanks anyway; I really appreciate it!
  17. Replies
    2
    Views
    2,775

    Insertion Sort

    Hello! This isn't really a Java question, but I created a Java program that does Insertion Sort, and my Java teacher wants me to find the average case for it. My teacher gave me a hint by saying...
  18. Replies
    6
    Views
    2,833

    Re: Jar Executable File Not Working

    This is the error I keep getting:

    Failed to load Main-Class manifest attribute from C:\Users\Computer\Documents\JCreator LE\MyProjects\Madlibs\classes\Madlibs.jar

    The thing is, I actually did...
  19. Replies
    6
    Views
    2,833

    Re: Jar Executable File Not Working

    Thanks, but the main problem is that I've done it like this before, and it worked. For some reason, it refuses to work even though I specified the main class. Also, how do you make a manifest.mf file?
  20. Replies
    6
    Views
    2,833

    Jar Executable File Not Working

    Hello! I recently finished a program, and I want to make it into a jar executable file, but it always comes up with this message whenever I try to run the jar file that gets created:

    Failed to...
  21. Replies
    7
    Views
    1,386

    Re: Subroutine Help

    I tried some of those codes, but it still didn't work. I initialized all of the variables, but now it says it can't find the symbols of noun, adjective, verb, noun2, adjective2, and verb2.
  22. Replies
    7
    Views
    1,386

    Subroutine Help

    Hello! I'm making a madlibs-like program, and I made a subroutine so I don't have to keep assigning the same variables to the same values. Here is my code:

    import javax.swing.ImageIcon;
    import...
  23. Re: How To Make JCreator Output in a Command Window

    Thanks a bunch!
  24. Re: How To Make JCreator Output in a Command Window

    It shows the command on the output window, but it doesn't open up a separate command prompt that displays the project.
  25. How To Make JCreator Output in a Command Window

    Hey everyone! I haven't programmed in Java for a long time, and I just downloaded it on my computer. I typed up a simple program that said "Hi," but I noticed that the output came up on the output...
Results 1 to 25 of 28
Page 1 of 2 1 2