Search:

Type: Posts; User: bankston13

Page 1 of 2 1 2

Search: Search took 0.37 seconds.

  1. Replies
    1
    Views
    165

    Help with infix to postfix problem.

    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...
  2. Replies
    12
    Views
    785

    Re: outputting

    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...
  3. Replies
    1
    Views
    189

    Re: Alphabet Program

    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...
  4. Re: Help with traversing a maze recursively.

    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...
  5. Help with traversing a maze recursively.

    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...
  6. Re: Not sure what's wrong with my client class. keep getting "java.io.FileNotFoundException: " when I enter any filename. What am I missing?

    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...
  7. Replies
    24
    Views
    486

    [SOLVED] Re: Help with Methods

    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...
  8. Replies
    5
    Views
    305

    Re: Java Program Help

    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...
  9. Replies
    5
    Views
    305

    Re: Java Program Help

    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...
  10. [SOLVED] Re: Needing a little advice on a method in my circular linked list.

    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...
  11. [SOLVED] Needing a little advice on a method in my circular linked list.

    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...
  12. Re: scan.nextLine doesn't work in a while loop.

    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.
  13. Replies
    24
    Views
    486

    [SOLVED] Re: Help with Methods

    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...
  14. Re: Beginner assignment - constructor issue / error

    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...
  15. Re: Just learning how to use constructors...

    Sorry, didn't mean for it to be a solution. I guess i didn't think of using a different example.
  16. Re: Just learning how to use constructors...

    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...
  17. Need a little help removing from a circular linked list

    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...
  18. Replies
    7
    Views
    365

    Re: Need some help with Generics

    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...
  19. Replies
    7
    Views
    365

    Re: Need some help with Generics

    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...
  20. Replies
    7
    Views
    365

    Re: Need some help with Generics

    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 )
    {


    ...
  21. Replies
    7
    Views
    365

    Re: Need some help with Generics

    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...
  22. Replies
    7
    Views
    365

    Need some help with Generics

    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...
  23. Replies
    7
    Views
    545

    Re: Need some help with my Banking program

    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...
  24. Replies
    7
    Views
    545

    Re: Need some help with my Banking program

    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...
  25. Replies
    7
    Views
    545

    Re: Need some help with my Banking program

    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...
Results 1 to 25 of 43
Page 1 of 2 1 2