Re: how do i try/catch this?
Sorry, I don't see this "enter file name" in your code. Have you posted the wrong code?
Quote:
it says i cannot do tha
If you get errors, please copy and paste the full text of the message here.
What Exception do you want to catch? What method throws that exception?
Use the equals method to compare Strings. Not == or !=
Re: how do i try/catch this?
how exactly do you use the equals method here? please do help me..it stil says that variable yeet1 cannot be found because of the closing bracket before the 'catch' statement..what do you think i should do?how can i access the variable yeet1,yeet2 and yeet3??
Re: how do i try/catch this?
Quote:
.it stil says that variable yeet1 cannot be found
Please copy the full text of the error message and paste it here.
It sounds like you are having a problem with scope. Variables defined inside of {} are NOT visible or usable outside of the {}. You need to define the variables outside of the {} and give them null or 0 values and then change their values inside of the {}. The new values will then be available when you come out of the {}.
Re: how do i try/catch this?
Encrip.encrip(yeet3,yeet2);
Backup.backup(yeet2);
are causing some problems
Re: how do i try/catch this?
Quote:
are causing some problems
Please explain. If you get error messages, copy and paste here the full text.
Re: how do i try/catch this?
Quote:
Originally Posted by Rex the king
are causing some problems
This thread is over a year old. I presume the original poster has solve the issue or moved on.