Java: Some problems in given condition

Ads
 

Java: Some problems in given condition

SIR, I want to get the values from the table( database), if any one of the column of the table value is 0. Then one alert should b printed in application using Java.

If(att.getdata1()==0||att.getdata2()==0) If I use this code in Java.I am facing NullPointerException.

Can You Help me solve this problem?-

View Answers

Ads









Related Tutorials/Questions & Answers:
Java: Some problems in given condition
Java: Some problems in given condition   SIR, I want to get the values from the table( database), if any one of the column of the table value is 0. Then one alert should b printed in application using Java. If(att.getdata1()==0
Given a particular method condition, identify the following: whether an exception will be thrown, the type of exception thrown, the container's action, and the client's view.
Given a particular method condition, identify the following: whether an exception will be thrown, the type of exception thrown...;Exceptions Next    Given a particular method condition
Advertisements
arraylist problems?
arraylist problems?   myprogram needs to ask the user for a file name. The file will contain a name on each line. Put each of the names into an ArrayList. After you have put all of the names into the ArrayList search through
problems regrading .properties files
problems regrading .properties files  According to my struts... registerd according to my validation condition which m placed in the validate mathod... in the same registration page.... evry thing is correct.But Can some one plese tell me
Problems in Stringtokenizer
Problems in Stringtokenizer  hi here is my code import java.util.*; import java.io.*; import java.util.Scanner; class Node { public boolean marked; public int node_no; public String node_type; //public float value; //public
Problems in Stringtokenizer
Problems in Stringtokenizer  hi here is my code import java.util.*; import java.io.*; import java.util.Scanner; class Node { public boolean marked; public int node_no; public String node_type; //public float value; //public
Problems in Stringtokenizer
Problems in Stringtokenizer  hi here is my code import java.util.*; import java.io.*; import java.util.Scanner; class Node { public boolean marked; public int node_no; public String node_type; //public float value; //public
ModuleNotFoundError: No module named 'problems'
ModuleNotFoundError: No module named 'problems'  Hi, My Python... 'problems' How to remove the ModuleNotFoundError: No module named 'problems... to install padas library. You can install problems python with following
What are the problems in AI?
What are the problems in AI?  Hi, I am beginner in Data Science... are the problems in AI? Try to provide me good examples or tutorials links so that I can learn the topic "What are the problems in AI?". Also tell me
if else condition - Java Beginners
if else condition  Please explain the if else condition in Java programming language
ModuleNotFoundError: No module named 'drf-problems'
ModuleNotFoundError: No module named 'drf-problems'  Hi, My Python... 'drf-problems' How to remove the ModuleNotFoundError: No module named 'drf-problems' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'drf-problems'
ModuleNotFoundError: No module named 'drf-problems'  Hi, My Python... 'drf-problems' How to remove the ModuleNotFoundError: No module named 'drf-problems' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'postman_problems'
ModuleNotFoundError: No module named 'postman_problems'  Hi, My... named 'postman_problems' How to remove the ModuleNotFoundError: No module named 'postman_problems' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'practice-problems'
ModuleNotFoundError: No module named 'practice-problems'  Hi, My... named 'practice-problems' How to remove the ModuleNotFoundError: No module named 'practice-problems' error? Thanks   Hi, In your
Java if else condition
Java if else condition  its there any similar condition for (X<=5 || y<=10) please post the answer as soon as possible.... TQ
check condition in if-else block
check condition in if-else block  Hi, I want to update database with following query int i= st.executeUpdate("Insert into text_editor(words) values('"+words+"')"); how can I give a check option so only valid words are inserted
ModuleNotFoundError: No module named 'bearing-condition'
ModuleNotFoundError: No module named 'bearing-condition'  Hi, My... named 'bearing-condition' How to remove the ModuleNotFoundError: No module named 'bearing-condition' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'bearing-condition'
ModuleNotFoundError: No module named 'bearing-condition'  Hi, My... named 'bearing-condition' How to remove the ModuleNotFoundError: No module named 'bearing-condition' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'condition-chain'
ModuleNotFoundError: No module named 'condition-chain'  Hi, My... named 'condition-chain' How to remove the ModuleNotFoundError: No module named 'condition-chain' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'md-condition'
ModuleNotFoundError: No module named 'md-condition'  Hi, My Python... 'md-condition' How to remove the ModuleNotFoundError: No module named 'md-condition' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'rest_condition'
ModuleNotFoundError: No module named 'rest_condition'  Hi, My... named 'rest_condition' How to remove the ModuleNotFoundError: No module named 'rest_condition' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'jutge-problems-toolkit'
ModuleNotFoundError: No module named 'jutge-problems-toolkit'  Hi...: No module named 'jutge-problems-toolkit' How to remove the ModuleNotFoundError: No module named 'jutge-problems-toolkit' error? Thanks   Hi
ModuleNotFoundError: No module named 'practice-problems-builder-ktraff'
ModuleNotFoundError: No module named 'practice-problems-builder-ktraff' ...: ModuleNotFoundError: No module named 'practice-problems-builder-ktraff' How to remove the ModuleNotFoundError: No module named 'practice-problems-builder-ktraff'
ModuleNotFoundError: No module named 'solve-some-problems'
ModuleNotFoundError: No module named 'solve-some-problems'  Hi, My... named 'solve-some-problems' How to remove the ModuleNotFoundError: No module named 'solve-some-problems' error? Thanks   Hi
ModuleNotFoundError: No module named 'solve-some-problems'
ModuleNotFoundError: No module named 'solve-some-problems'  Hi, My... named 'solve-some-problems' How to remove the ModuleNotFoundError: No module named 'solve-some-problems' error? Thanks   Hi
problems in parsing the xml with the special characters
problems in parsing the xml with the special characters  Hi, I have a problem, in while parsing the xml with special characters apstrophe('). I am getting the exception Caused by: javax.xml.transform.TransformerException
nsstring get value - algebra multiplication problems
nsstring get value - algebra multiplication problems  NSString Algebra multiplication problems How can i get value of X using algebra multiplication problems in nsstring? if i have two values.. 3 + 8 + X = ? Thanks
Pagination with condition using servlet or jsp
Pagination with condition using servlet or jsp  Hi, Thanks... with condition). My problem is first time five records will come(I mean 5 records... records i have 25 based on the condition) and I found one problem in that when I am
hibernate criteria 'And' 'or' condition Example
hibernate criteria 'And' 'or' condition Example... to Criteria Restriction  and 'And' 'or' condition. Here...(5)); // Criteria or condition crit.add(Restrictions.or(crit1, crit2
ModuleNotFoundError: No module named 'django-condition-chain'
ModuleNotFoundError: No module named 'django-condition-chain'  Hi...: No module named 'django-condition-chain' How to remove the ModuleNotFoundError: No module named 'django-condition-chain' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-rest-framework-condition'
ModuleNotFoundError: No module named 'django-rest-framework-condition' ...: ModuleNotFoundError: No module named 'django-rest-framework-condition' How to remove the ModuleNotFoundError: No module named 'django-rest-framework-condition' error

Ads