GetRelationship Between Two Persons

Dec 10, 2014

int getrelationshiptype(string person1, string person2)
int type = -1

I have to check if there is relationship between personA and personB then return relationship otherwise have to return -1 for no relationship..

View Replies


ADVERTISEMENT

Method That Counts Registered Persons In A Program

May 7, 2015

Any method or two that counts, for example, registered persons in a program?

I have this insurance program that have different insurance registered on persons.

I really want a history class that counts registered persons, and theirs insurance.

View Replies View Related

Saving And Reading Persons To / From Binary File

Dec 7, 2014

Everything compiles but doesn't work like it should. What the idea is, is to be able to add class personnel objects and have them saved in a file, so that later on i would be able to see them.

Back to my problem: When i create a new "Personnel" and try to run Write and read, to see if my new "Personnel" is added to the list, it's not there at all... what do i do wrong?

import java.io.*;
class Personnel implements Serializable
//No other action required by Serializable interface.
{
private long payrollNum;
private String surname;
private String firstNames;

[Code] ....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved