Thank you for your reply... For an issue like this, (I'm assuming it's a common issue...) Would this suggestion/method be a common practice... It sounds like a nice solution, but I'm trying to stay close to good design principles...
Hello, I will try to keep this as simple as possible and try to describe my problem accurately. I have to 4 classes :
Two of them are depts and the other two are Actions... The idea is that each dept will utilize a particular action. (Some FileDeletion functionality...)
I thought interfaces would do the trick...
The dept classes came together very quickly. However, I've run into problems with my action classes and the implementation of the Action interface...
The problem I'm running into is that my two action objects can't implement the method the same. Each action class needs to supply the method different arguments to achieve the desired actions.
Obviously, this design is flawed, an Interface in this situation appears to just not make any sense. Is there maybe a different approach I can use? To achieve the desired affect? I could code the two object classes implementing all the needed methods, but that doesn't feel like a good OO design. I feel like I'm missing something.
Hello, I have a question for the forum. I have recently worked on a program where I had quite a bit of trouble in the design aspect of the project. I ended up have to use a marker interface, which i my opinion was functional, but kind of a hack. My question to the board is where should I go to brush up on good java design principles? Would design patterns be appropriate in this sense?
The issue I constantly run into is the line: WebRequest request = new PostMethodWebRequest("http://localhost:8080/BooksSite/FormValidation"); keeps telling me that it is not a valid servlet. So I must be missing something, becuase i'm pretty sure that is the servlet url.
Not sure where to go from here.
I cannot do anything from this point, other testcases never get accessed because of this error!
Thank you all for your replies. I got it figured out. The assert statement was fine. I had something up stream that was cause my assert to be triggered.. So HA, score one for the debugging merits of assert!!
The intent behind the code is : I'm attempting to parse multiple csv files. The CSVParser in the program outputs the parse into a multidimensional String array. For each CSV file I process, I'd like to add the individual files into a Big One. Essentially, I need to add the contents of one Multidimensional Array to another.
I don't really have any data at this time to show you, It's more of a concept at this time. I just wanted to know if it was possible.
If I'm not being clear i apologize. I do appreciate your help.