Help.... cant access object
public void getProduct(Product item)
this.product = item;
System.out.println(this.product);
public boolean orderProduct(int productCode, int orderAmount)
boolean validOrder = false;
if(this.product == null)
return validOrder;
else if(this.product.getInitialQuantity() < orderAmount)
System.out.println("Product stock is not enough to be ordered");
System.out.println("Sorry for any inconvenience");
return validOrder;
}else
validOrder = true;
return validOrder;
I try to access the this.product object in getProduct( ) from orderProduct( ) but it return null
these both method are in the same class
when I do print method in getProduct( ), it display the product but when it come to orderProduct( ), it is null
how can I access this.product from orderProduct?
thanks
And use the code formatting tag please. Makes it much easier to read code on the forum.
Similar Messages
-
Help cant access my VM!!!!!
I forgot my one cloud base VM's password the one u use to access the VM . Is it possible to reset that password???
Hi jake,
You can use Powershell to reset your administroator password.
Please see this page :https://msdn.microsoft.com/en-us/library/dn606308.aspx
and this code sample:
http://blogs.technet.com/b/keithmayer/archive/2014/06/26/microsoft-azure-virtual-machines-reset-forgotten-admin-password-with-windows-powershell.aspx
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I live next door to my brother and would access his network from my house. So my time capsule is set up on his network. Now I have my own internet access and I want to switch it over to my network but i dont know how. Whenever the airport utility looks for the Time Capsule it doesnt find it Please HELP
Use an ethernet cable to connect the computer to one the LAN ports on the Time Capsule and then Airport Utility will find it. Another option would be to do a hard reset on the Time Capsule and then reconfigure it the same as when you first got it. Instructions below on how to reset the settings.
http://support.apple.com/kb/HT1300 -
I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT
If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699 -
Help on accessing Oracle object !
Hi,
Looking for a help in accessing oracle object using JDBC. I've the following object defined in Oracle.
TYPE ty_ctg_prod AS OBJECT(
PROD VARCHAR2(40 ),
NODE_ID NUMBER ,
CTG_ID NUMBER );
TYPE ctg_PROD_ary AS VARRAY (50) OF ty_ctg_PROD;
The procedure out parameter is returning :
x_ctg_prod_ary OUT ctg_prod_ary
Do I need to use a OracleTypes.STRUCT API Or oracle.sql.ARRAY to access data in this scenario.
Any pointers will be highly appreciated.
Thanks,
Shamik// Get the object1 value from the second column col_object1
oracle.sql.STRUCT object1 = (oracle.sql.STRUCT)collabstatement.getObject(2);
// Get the object1 values from each row
Object[] object1Values = object1.getAttributes();
// Get the first value of object1, which is a string
String str = (String)object1Values[0];
// Get the second value of object1, which is of the type object2
oracle.sql.STRUCT object2 = (oracle.sql.STRUCT)object1Values[1];
// Get the values of object2
Object object2Values[] = object2.getAttributes();
str = (String)object2Values[0];
BigDecimal num = (BigDecimal)object2Values[1];you can also use :oracle.sql.Datum[] attrs = oracleSTRUCT.getOracleAttributes();more info :
http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/objects/ObjectTypes.html -
How to check if cs6 photoshop is activated if I cant access ps help?
How can I check if my CS6 Photoshop is activated if I cant access PS Help?
Why do you need to check it if you can't access it? If it is because you need to have it deactivated then contact Adobe Support thru chat and ask them to reset your activations.
For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
Serial number and activation chat support (non-CC)
http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC ) -
I bought new iphone 5s locked after i unlocked my iphone5s . when I switch on my phone it says enter your apple id but i forgot my icloud username. I cant access anything in my iphone. please help me? what shall i do .
kitan47 wrote:
I bought new iphone 5s locked after i unlocked my iphone5s
Was it Officially Unlocked by the Carrier it was locked to...?
If so... who is the carrier..? -
Help.after updating my os5, my app store icon is gone and i cant access my store!!!what is going on, Help.after updating my os5, my app store icon is gone and i cant access my store!!!what is going on
You're not talking to a team of Apple employees poised to jump on your question. We're all just users here, and we might be doing something else...
You cannot delete the App store App. It is somewhere on your Home screens, or you have dragged it into a folder. Any folder. If all else fails Settings > General > Reset > Reset Home Screen Layout. -
This morning I was able to access iTunes Store on my computer and iPod 5G - and now I cant access the store at all - something about my network connections - help? ive restarted rebooted
Thank you so much for replying. But resetting my apple I'd Password seems to have done the trick. I am able to download apps :). Got me worried I even uninstalled kaspersky 2012 :( got to reinstall back
-
please help i upgraded my iphone5 to new ios7 yesterday 2pm and untill now its already 17hours and why cant access or back to normal?is this normal or stil upgrading? it only appears the apple logo on screen and keep coming the logo screen on and off.do i need to bring my phone to apple center or is this iops 7 takes longer time or an hours to successfully upgraded.please help me what can i do?
Anyone have any suggestions? or is everyone else just as clueless as me !
-
hi..i am trying to login i message but i cant access ,it thing i forgot my password number, please i need help,how i can reset new password number. please i need help.
Go here.
Good luck,
Clinton -
Somebody can help me please. I can't access my count in gmail. I restart because the told me that my name or password is wrong. I can't set up my gmail count again. So is it necessary configure the smtp? If yes, I cant access this option. The message that I have is: the user name or password for imap.gmail.com is incorrect.
Ok, I've had thie issue with various email address on and off for aout a year now. I finally found a soulution:
Login to the Google account giving you problems;
Go to: https://accounts.google.com/DisplayUnlockCaptcha
Hit "Continue".
Go to Apple Mail and hit "Get Mail" for that account.
Repeat for each account continually asking for password. -
I cant access my ymail PLEASE HELP I can log into yahoo but cant get to mail? Think the words configure & rand flash in address bar
Hi Acrylik,
Welcome to the Apple Support Communities!
For assistance resetting your Apple ID password, please use the information in the following article. I understand you have already attempted to reset via email and security questions, but the article also includes a link to contact Apple support if necessary.
If you forgot your Apple ID password
http://support.apple.com/kb/HT5787
Have a great day,
Joe -
Please help. I have a new nano, but I cant access the iTunes store. When I click on the store it tells me I am accessing the store, but nothing happens. When I have clicked on the help function I am told my computer is not connected to the Internet, which is not correct - I usually have other sites running at the time.
Please help.
Thanks,
IonaTry switch off virus scanner and firewall.
-
need help regarding may ipad, i cant access my ipad, need help regarding may ipad, i cant access my ipad
Can you be little more specific?
Maybe you are looking for
-
How do I deal with a lot of video noise in underexposed aeras. This also happens at low ISO
I seem to have a lot of high video noise in underexposed aeras. This is specially visible in the blacks, it shows more because of the blacks and happens at all ISO values. On other forums I read this can be caused by camera been used a lot and or to
-
Hi I have some dough against advance payment against po 1) where I will get information how( user ID) create advance payement request again Po 2) Is it possible to do partial payment again advance payment Request Regards Kailas Ugale
-
Getting an Invalid or absent Content-Type exception with soap attachment
Hi, I am trying to send an attachment using Saaj API. As soon as I use the attaachment object and attach it to message I get an exception . If I remove it the over all webservice communication works successfully. Even if I set the content type in the
-
Add Vendor Name to FBL3N output list
Dear All , I need to add vendor name to FBL3N output list . Is there any way to add the vendor name ? Thanks Dash
-
Your installation won't accept the serial number
Your software installer won't accept the serial that I have for it