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] *...
Type: Posts; User: Kimimaru
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] *...
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...
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...
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...
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...
//Stores data into an array
while ((line = reader.readLine()) != null)
{
StringTokenizer line2 = new StringTokenizer(line);
while (line2.hasMoreTokens())
...
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...
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:...
This is what I came up with so far:
while(sinput2.hasMoreTokens())
{
String temp = sinput2.nextToken();
System.out.println(temp.length());
count += temp.length();
...
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...
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?
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...
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...
I would draw a bigger triangle out of smaller 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:
...
That helped me a little bit, but unfortunately I still don't completely understand. Thanks anyway; I really appreciate it!
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...
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...
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?
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...
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.
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...
Thanks a bunch!
It shows the command on the output window, but it doesn't open up a separate command prompt that displays the project.
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...