wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating your own class" Watch "Creating your own class" New topic
Author

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
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
public class Long_Integer
{
// Stuff about handling Long/long and Integer/int
}


JavaBeginnersFaq
"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: 14074
    
  16

Look through the tutorial:

Learning the Java Language


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
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: http://aspose.com/file-tools
 
subject: Creating your own class
 
Similar Threads
JUnit 4 and @RunAs annotation
Question on Dates
Is it possible to create a listener for JMS's QueueBrowser?
Creating Web services - Newbie
Wrapper class