• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issues with beginners java

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sometimes teachers only know legacy code
 
Mohamed Sanaulla
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic