Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating your own class

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Marilyn de Queiroz
Sheriff
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class Long_Integer
{
// Stuff about handling Long/long and Integer/int
}
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look through the tutorial:

Learning the Java Language
 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I'm trying to "reboot" my coding skills, so I'm a little rusty.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic