aspose file tools*
The moose likes Java in General and the fly likes whats wrong with my code ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

whats wrong with my code ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 682

i have created a constructor in my class and initialize variables inside the construct
what i want is when i ll call a method and pass a argument while creating a object to constructor , the method should print my new value
the code is



in the output i want the new value i.e 56 and 80.how to achieve this , any one can help me in learning this one !


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

Once is enough. UseOneThreadPerQuestion. Closing this one.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: whats wrong with my code ?
 
Similar Threads
Question about inheritance
Threas - Object Locks Question
can a sub class reference access private variable of super class?
Reg.naming variables
Multiple file Project