Lori Gardner-Wilson

Greenhorn
+ Follow
since Jun 03, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lori Gardner-Wilson

I am new to programming and am just starting to learn Java. I took a class on Object-oriented design first, with a big focus on UML, and I think it was helpful.

If you want to play around with it, visual paradigm SDE is a UML plug-in for eclipse. You can download the standard edition with a 30 day trial and it will let you do some reverse engineering into eclipse. For example, create a uml class diagram and it will create the class in eclipse.

UML diagrams are a great way to figure out your relationships and flow before you start coding.

Activity diagrams utiliize swim lanes.

Good luck!
14 years ago
Thanks! That gives me a place to start. I need to do some research on syntax for returning deserialized objects, and probably returning objects in general. I'll dig into that first.

Thanks again for your time and help. This is a great site for beginners.
14 years ago
Sorry, I'm not getting this.

Is this what you mean?




If so, I ran it and got the same results.

I really appreciate you trying to help me
14 years ago
Hmmm, I tried that but got the same results.



Would I somehow need to change the return in the ClientMgr or the ClientSrv Implementation?

I really appreciate your help.
14 years ago
Hello -

Thanks for the quick reply.

I updated the code to include the else..., but I don't have it right.





Here is what is happening:

* I run it and in the UI enter a Clients first name (Betty) and last name (Rubble)
(a serialized file BettyRubble.ser exists that was created from the Add Client Event
and contains first name, last name, home phone, mobile phone and children data)
* The UI displays Betty Rubble, but not the rest of her data.
* In the console, this displays
Begin lookupClient method
End lookupClient method


Am I correct that it is taking the input from the UI correctly and checking for the file and that
the problem is that I don't know how to tell it to display/return the attributes?
* If I enter the name of a Client that does not exist, nothing happens in the UI,
but the console displays "Client not found"

14 years ago
Hello -

I am new to Java and am taking a class that I thought was to learn Java, but instead it's more of a class on how to design
Java apps using design patterns and n-tier architecture. Thus far, I'm managing to work my way through the class and trying to
learn Java coding at the same time, but it's proving difficult to do both at once. I am going to take the next few terms off of school and focus on learning the Java language, but need to get through this class for now.

Anyway, my project is a VERY basic contact manager app.

I'm working on the UI and a lookupClient (where Client is the contact) use case.

I've been working for days on this and am getting a little closer, but am getting frustrated and thought I'd see
if I can get some help.

For the lookupClient use case/method, what I want to do is this:

1) get User input (a first name and a last name) from the UI
2) check to see if a client.ser file with that input exists
3) if a client.ser file matching that input exists, then deserialize the client object and display its attributes
(first name, last name, street, home phone, mobile phone and children)
in the UI for the user to see
else display a message "Client not found"

I've included the code I have thus far for the UI and the lookupClient method.

Any help would be greatly appreciated.

Sorry in advance for all the code, but I didn't to leave something out that may be needed to help.

Thanks!!!

UI Code




ClientMgr code




IClientSvc Implementation Code



14 years ago
Thanks for all the help and suggestions!

I really appreciate it.

14 years ago
Thanks. I will do some research on which variable type to use for the phone numbers.

I guess my question is how do I return the list with the variables?



Thanks so much for the help.
14 years ago
Hello -

I am very new to Java and am working on a program for a class, but am having problems with it.

Basically, I want to be able to add Clients, lookup Clients and eventually modify Clients.

I'm working on the add and lookup functions now, but can't figure it out.

Any help would be greatly appreciated!!

14 years ago
Thanks I will try that.
14 years ago

Hello -

I am just starting to learn Java and am in a bit over my head.

I have an ArrayList (clientList) with Client objects.

How to I return the clientList with the attributes of the Client objects?

I've included code for the class that handles the serialization/deserialization and the testClass I'm using to return the data.

Test Code



Code for serializing/deserializing - not done with the lookupClient code yet....not sure how to do this exactly



Thanks a ton.
14 years ago