File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Creating your own class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating your own class" Watch "Creating your own class" New topic

Creating your own class

Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
I have an assignment in which a part of it requires I create my own class of Long_Integer. I haven't done much over the past year, and am a little rusty. I am assuming all I have to do is create the class and import it into the other program that I will be writing.

Anybody know of a good example of how to do this just so my feble brain can take a break? I don't need the class, just an example of creating and using it.

Thanks in advance..

CNSS/NSA Infosec Professional,<br />Software Engineer
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
public class Long_Integer
// Stuff about handling Long/long and Integer/int

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15094

Look through the tutorial:

Learning the Java Language

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
Thanks. I'm trying to "reboot" my coding skills, so I'm a little rusty.
I agree. Here's the link:
subject: Creating your own class
It's not a secret anymore!