• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issues with beginners java  RSS feed

 
Christoffer Scheele
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, just found this forum and for starters I am not that experienced with java.

I have a school project and for the last task we're suppose to do work with

"Defining new types of objects, and use objects of these types in different ways
Items with references to vectors and other items
Nested and inner classes"

I don't want you to write a full code or any sort, I just want a hand on what it may be? I've worked with objects and vectors but I'd just need some examples of methods or a good explination of what it is.
pre-thanks :p
 
Christoffer Scheele
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I do find stuff about objects, but i've already worked alot with objects, return, vectors and such.
What I can't find is the difference in this task and examples of how to use those diffrences.. kind of stuck atm :p
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of examples at CodeBarn. You might want to check them out. And do let us know if you are stuck with some example. We would be more than happy to help
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically the task is:

Create a new class.
Instantiate new instances of that class.
Use references that point to instances of the Vector class and to other classes.
Use inner classes.

If you're having trouble with these objectives you could go through the Oracle Java Tutorial because it is all explained there.
 
Christoffer Scheele
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot for the help I think i've managed to make atleast 2 working projects! 2 more to go!
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I am a bit surprised you are told you use Vector; most of us regard it as "legacy code".
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes teachers only know legacy code
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouter Oet wrote:Sometimes teachers only know legacy code

Exactly. No wonder there are colleges around still referring to the Java 2 Books.
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mohamed sanaullah wrote: . . . still referring to the Java 2 Books.
Is there a Java 2 as well?
 
Mohamed Sanaulla
Bartender
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:
mohamed sanaullah wrote: . . . still referring to the Java 2 Books.
Is there a Java 2 as well?

yeah. I had this one book on Java 2 (cant recall the title and author), which was used in one of the curriculum's and my friend had recommended it. This was 2 years ago. And I happened to buy the book and then sell it back to the bookshop after keeping it for few months
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!