The assignment is to change an input that is infix into postfix and then output it. I am supposed to implement a stack, which I have, in order to accomplish this. The final solution will have a file...
Type: Posts; User: bankston13
The assignment is to change an input that is infix into postfix and then output it. I am supposed to implement a stack, which I have, in order to accomplish this. The final solution will have a file...
Well, how do you call a method? From just a quick overview I can say those are some nice looking methods. All your methods have the parameters that are passed in already written in their headers, so...
To begin with, you should put your code in the code tags so it's easier to read. Secondly, from the looks of it you have made no attempt to add or test any output or code. You already made the array...
Alright, so when I change the open space at the end to a * the the program seems to run just fine. Thanks for the help on that one. However, how would I go about making my program recognize that...
Hi guys. I've been doing pretty good with my programming so its been awhile since my last post, but as the title suggests I am stuck on traversing my maze using recursion. I have a 2D array that is...
Are you typing the file name correctly? Remember that when you give it a file name it has to be exact, so as an example look at the following:
File1 = Wrong
File1.txt = Correct
You also need...
You're almost on the right track. You declared the methods in your main method correctly the first time around, so thats good. The fix you made in your second post is wrong. The reason I bolded the...
How far have you gone in the class? If you know how to implement array lists, then I imagine it would be easier to return all of the factors to an array list, sort the array list, and then print the...
What exactly do you need help understanding? All you've posted is basically what your assignment is. How much code have you already done? We can't help you if you don't show us what you've already...
I figured it out. I was purposely passing the -1 index value to test if the method threw the exception, but it seems that would be unnecessary because its tested in the other test methods. Thanks for...
So, the method that I'm having problems with at the moment is my insertAt method, which takes an integer and an item as parameters and then adds the item to the circular linked list at the index of...
It sounds like you may have a potential buffer problem. At the end of your while loop, try making phrase equal to a blank phrase. It will clear the buffer and and help avoid any unnecessary inputs.
Read this line carefully from your errors:
error: non-static method inputID() cannot be referenced from a static context
Now, look at your main method and then the methods you called. It has to...
I'm actually having a hard time pin-pointing whats wrong with your code myself. It looks fine to me, but you may want to add a .nextLine() command in between the two commands that get the users...
Sorry, didn't mean for it to be a solution. I guess i didn't think of using a different example.
Well, to start you should initialize your variables before any of your methods. Otherwise, anything you make the constructor initialize won't be recognized outside of the constructor method, and...
So, my current project has me making a circular linked list, and then adding and removing from it, along with some other methods. There seems to be a problem with my remove method, because when the...
Alright, so i figured out what was wrong with my toArray calls. I needed to make object arrays instead of T arrays. However, I'm having a hard time adding to the arraylist that I made to hold the...
After some more though, I think I've completed most of the code, aside from the union and intersect methods. What I'm trying to do is make the two arraylists that are passed into the two methods call...
I can't even run the code, because of the syntax issue. here si the relevent code:
public static <T> Set<T> intersect(Set<T> first, Set<T> second )
{
...
I'm getting a syntax error with my Intersect method. Its specifically at the .get part, which is telling me that it can't get the object that is in the i position of the arrayList. I'm not sure on...
The purpose of the project is to write code for a generic MySet class, as described below. Based off of my teachers template, I have already written the code that is seen below, as well as written up...
Sorry, I had to go with the family somewhere where there was no internet, so I couldnt answer your question. The reason I used statics in my Bank class is because it wouldn't work without them at...
I figured it out. What was confusing me was that it was saying that the for loop was wrong, so I thought it had something to do with the Customer object I was passing. However, since the arrayList is...
I can't seem to figure out which null value its referring too. The only nulls are the ones that I pass through to represent the string portion of the customer that I need, and I only pass in null...