Equals does not work where it should......
This runs in a while next from mysql DB, gets 5 rows back.
If a real date is in the field I want to print out the date in the else.
otherwise I want to display nothing if the date field in MysQL DB has 0000-00-00 inside (default value).
if (rs.getString(4).equals("0000-00-00")) {
out.println("0000-00-00");
} else {
out.println("real date");
Why does this not work???
Hi
Have you checked that the value coming from database is 0000-00-00 only for the results?
If correct,
Do the following :
Put the rs.getString(4) value into a string. now compare the string. using the code
String strDate = rs.getString(4);
if (strDate.equalsIgnoreCase("0000-00-00")) {
out.println("0000-00-00");
else {
out.println("real date");
Try it
Thanks
Swaraj
Similar Messages
-
I have a problem with Adobe Creative Cluod. Basically after installing the application when I open it I do not charge adobe products but remains all white screen. I tried to uninstall it and install it several times but it does not work.
What should I do?Hi Anto2211,
Please follow the thread: Black screen CC where this issue is already discussed and resolved.
Let me know for any further query.
Thanks,
Ratandeep Arora -
My down arrow key does not work as it should
Hello to you.
My down arrow key does not work as it should.
When I use my down arrow key is the whole side going down.
It is annoying when you write that you always end up bottom of the page when using the Down arrow key. I hope I can help me
I use Windows Vista.
Yours faithfully
Anders LodbergCheck if you enabled scroll lock (fn + insert), in excel it scrolls page when enabled and move across cells when disabled
3000 N200 0769-AL3, Intel C2D 2G T5750, IEL10 mb, Kingston 4G RAM, Samsung 320G HD, Broadcom lan 100, Agere modem 56k, Broadcom wifi g, AuthenTec fingerprint reader, Sonix 1.3M camera, LG DVD burner, Samsung 15,4" 1280x800 BrightView, Intel X3100 IGD 384M, Ricoh 5in1, Ricoh 1394, vista home premium sp2 -
okay i updated my iphone 5 and i changed my password and now i dont remember it i cant restore my phone because my power botton does not work so what should i do PLEASE HELP!!!!!!! Thanks
Hi sigrun from mo,
If you are having a button issue on your iPhone that prevents you from doing further troubleshooting, you may need to have the phone serviced. You may find the following page helpful:
Service Answer Center - iPhone
http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
Regards,
- Brenden -
I updated to 6.1.3 on my iPad 1, and now my app store does not work. What should I do?
The Complete Guide to Using the iTunes Store
http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This works for some users. Not sure why.
Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
Cheers, Tom -
My code does not work as expected. See the code below:
private JTextArea input, output;
String s = "";
input.addKeyListener(new KeyAdapter()
public void keyTyped (KeyEvent e)
Character c = new Character(e.getKeyChar());
if (Character.isLetterOrDigit(e.getKeyChar()))
s = s + e.getKeyChar();
else if (e.getKeyText(e.getKeyCode()).equals(" ")) //P600 Dietel
output.append(s+" ");
String s = "";
});As long as it does not compile is hard to work (your code I mean). Try this for a change:
ta.addKeyListener(new KeyAdapter(){
String ss = "";
public void keyTyped (KeyEvent e){
if (Character.isLetterOrDigit(e.getKeyChar())){
ss = ss + e.getKeyChar();
System.out.println(ss);
}else if (Character.isWhitespace(e.getKeyChar())){
System.out.println(ss + " ");
}); -
TS1996 my zero key does not work as it should after software update any help
my zero key does not work after a software update when i try to use it /pp0 then volume symbol appears on the screen just happened after the update
Hello, pakie1.
Thank you for visiting Apple Support Communities.
Here is a troubleshooting article that you may find helpful when experiencing keyboard issues.
One or more keys on the keyboard do not respond
http://support.apple.com/kb/ts1381
Cheers,
Jason H. -
updated my ipad with ios7 but the keyboard does not work its slow when i hit the letters does not click did not do this until i updated anyone can help me on this to fix it
Settings>General>Reset>Reset All Settings
-
Junk mail just does not work as it should
I've had this for ages and just put up with it.
I have my jumk mail settings set for
Enable: the following types of messages are exempt from junk mail filtering: sender of message is in my address book (and in previouos recipients).
I assume that this means that anyone sending a message who is in my address book will not then appear as junk. This does not happen and despite repeated attempts to assign each one as not being junk it never learns as I thnk it is supposed to. A very few of my incoming messages of people who are in my address book do not appear as junk but I can't see a pattern.
Over time I have tried all kinds of ways to set the various settings but to no avail and now I really think that I should try and sort it as it is low grade annoying. I would appreciate any help anoyne could give.
Pete Snowdonhey are you still having trouble with your ical publishing? it looks like it needs more testing...but try this format of the web address.
http://ical.me.com/USERNAME/CALENDARNAME
It looks like iCal hasn't updated when you updated your operating system if it's still writing to a .mac address like you suspected. The most recent version is 4.0.1. If you need to update your actual application you can try copying from another computer with snow leopard installed (I've tested this), or reinstalling Snow Leopard. (not a fun option for such a small issue I know) -
Function keys does not work as they should.
The function keys has worked as they should since I bought the computer.
When I turned on the computer yesterday, the function keys didn't work as they should.
Example:
Before: When I hit the F5, the light in my keyboard was turned on/off. When I hit Fn + F5, I refreshed the browser page.
Now: When I hit the F5, I refresh the browser page. If I hit Fn + F5, I still refresh the browser page.
I used to control the volume on the computer with F6-8, but now I have to click the speaker icon in the lower right corner and manually "drag" the volume up or down.
Does anyone know how this can be fixed?Hi @Andy19955 ,
Please try disabling Action Keys Mode in the BIOS, using the steps in this document:
Disable the Fn + Function Key Combination on Certain Models
Please click the thumbs up button to say "Thanks!"
Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
I am an HP employee. -
Camera on U330p in Windows 8.1 does not work as it should
Have used the newest driver from Lenovo but no help, ant idea what to do ?
Hi aclose26, welcome to the HP Forums. iTunes not recognizing iPad in Windows 8.1 seems common. This thread on Apple's forums has a lot of possible fixes. You should research this here: windows 8.1 itunes wont recognize ipad
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
My DVD-ROM drive does not work -- what steps should I take?
MacBook Pro, a couple of years old. Was used by an employee for 2 years, now have it at home and found that the DVD-ROM drive does nothing when I insert a disc.
What I really would like to know is what are the first steps with this. I don't want to send the machine somewhere. Should I just get a cheap external? Could it be software?If by Does nothing you mean it doesn't even pull in the disk. That sound slike hardware not software.
I imagine it is out of warranty? If it is covered take it to be repaired in a mac store. If not I personally would opt for an external as the cost would be much more appealing. But doesn't hurt to inquire about the cost for having a new internal, or even fixing your current one.
But for my money I would opt for external. -
In finder I cannto easily change files from one folder to another. There should de a cut and paste for this. Not drag and drop. thanks P.
paulfromqueretaro wrote:
In finder I cannto easily change files from one folder to another. There should de a cut and paste for this. Not drag and drop. thanks P.
OS X is all about keyboard shortcuts.
To cut cmd+x
To copy cmd+c
To paste cmd+v
With the Mouse, hold command and drag to your destination. -
"Personalizing Folder Presentation" does not work how it should
Hi All,
i have a problem with the presentation function for a folder.
With this functionality you can change the presentation of an folder, with predefined layout profiles.
In the settings menu you have the possibility to "Apply Settings to All Subfolders". That works fine.
But when I try to add a new folder, the new folder has the presentation of the Default Profile and not,
as one would think, the presentation of the parent folder.
Is it a SAP bug or a feature?
Thanks for your replies
SteveHi,
That is how it works. There is no inheritance in the presentation settings. When you check the Apply Settings to All Subfolders it goes through all the subfolders and actively sets the presentation settings for them.
That's why a new folder has no settings set for it.
Also see this:
[Priority of Settings|http://help.sap.com/saphelp_nw04s/helpdata/en/25/59bb2eece725498427334e0e21b80c/frameset.htm]
Best regards,
Avishai Zamir -
G550's numeric keypad does not work as it should be
Goodnight everyone, recently bought a laptop lenovo G550. He has a numeric keypad and one thing is making me confused. The key should be a dot "." is actually a comma ","..... what should I do? I tried everything ... My current setup is Portuguese Brazil ABNT 2
Please Help-me
Stevan Cseke
Brazil
Note from Moderator: Private information removed for your protection.try this : http://windows.microsoft.com/en-US/windows-vista/Change-your-keyboard-layout
Maybe you are looking for
-
Sorry if the title is vague, I am unsure how to properly word my question down to a single line. Anyways, on to my question, if I have two 16 core processors in a server, but I have 1 virtual machine that is setup with 4 cores, will the vmware only u
-
Arabic characters don't appear correctly, why?
Hi all, i have a problem i think many others have. The problem is that i'm trying to render arabic text in JDeveloper9i and Win2000 proffisional, but the arabic characters are rendered as question marks, although i have set the encoding option of the
-
when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what
-
How do i find how much storage i have used?
Hey there, i am new to Apple. I have a MacBook Air. I dont know who to find out how much storage i have. on Windows you go to My Computer. Any help? thanks.
-
Can final cut pro x open a final cut pro 7 file?
I editied a file on Final Cut Pro 7. I am looking to purchase Final Cut Pro X and I am wondering if I can open and edit my Final Cut Pro 7 project in Pro X?