Small Bug How to solve in my code

Ads
 

Small Bug How to solve in my code

String season=""; pst = con.prepareStatement("SELECT DISTINCT(Season) season FROM specialdates where Regid=?");

pst.setInt(1,reg_id );
rs = pst.executeQuery(); System.out.println(pst);
while (rs.next()) { System.out.println(rs.getString("season"));

seasons +=rs.getString("season") + ","; }

in above code seasons +=rs.getString("season") + ","; it shows bug in findbugs tool.. but it executes successfully how to solve the problem.

View Answers

Ads









Related Tutorials/Questions & Answers:
Small Bug How to solve in my code
Small Bug How to solve in my code  String season=""; pst... +=rs.getString("season") + ","; } in above code seasons +=rs.getString("season") + ","; it shows bug in findbugs tool.. but it executes successfully how to solve
Solve my code
Solve my code  import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.io.*; public class ChangeDetails extends... is the mistake in this code! This is working only one record doesn't work
Advertisements
how to solve
how to solve   log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly
how to solve this..
how to solve this..  Given a list of students and their marks Name | Science | Math | English | Computer Ahmad | 28 | 100 | 66 | 34 Samad | 56 | 89 | 55
how to solve this..
how to solve this..  Given a list of students and their marks Name | Science | Math | English | Computer Ahmad | 28 | 100 | 66 | 34 Samad | 56 | 89 | 55
plz solve my query?
plz solve my query?  how to remove all the options from select control in html using java script?   JavaScript remove all items <html> <script language="javascript" > function removeAllItems(selectbox
solve my question shortly
solve my question shortly  <html> <head> <script>.... I have corrected your errors now you can run your code easily. I have also made... called it on form event i.e. onsubmit event. The changed code is as follows : <
Please Help To Solve My Problem
Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok button. 6 Textbox to Add the 6 Team Name. Each Team Name In String(Like- A,B,C,D,E,F... With B Team when A Team Play With B Team Again Then Generate Error. I Am Solve
plz anyone can solve my
plz anyone can solve my  creat an applet prog which accepts the details of 10 customers like name , address , city , ect. and display it   import java.awt.*; import javax.swing.*; import java.awt.event.*; import
How to solve this java code by adding the student marks not in the list of the table. For example -10 and 156 in GUI?
How to solve this java code by adding the student marks not in the list of the table. For example -10 and 156 in GUI?  import java.awt.*; import javax.swing.*; import java.awt.event.*; public class MarkStudent { double
How to solve the Hibernate Common Exceptions?
How to solve the Hibernate Common Exceptions?  How to solve the Hibernate Common Exceptions
how to solve an internet connection problem
how to solve an internet connection problem  when i run my application it give me this error: Exception in thread "AWT-EventQueue-0... how to implement
ajax code please help to solve this........
ajax code please help to solve this.  in this i am trying to get data from datbase and put it in combo box and then display it down using table... the fourth one similarly. For the above code, we have used 3 database tables
i dont no how to solve it pls
i dont no how to solve it pls   Calculate and display the sum of all prime number from 1 to 100 covert in java system codes
My Base Class is Changing every time in my code. How I can overcome this?
My Base Class is Changing every time in my code. How I can overcome this?  I have had the below question asked in interview, i'm curious to learn... to change Generator). So, as an example of the code public class GeneratorBase1
help me about to solve my qustion
help me about to solve my qustion   An employee receives 15 SR per hour for the first 8 hours of week. After 8 hours (overtime) his rate becomes 20 SR per hour . Write a java class that ask a user to enter the number of hours he
how to solve this problem for oracle connectivity
how to solve this problem for oracle connectivity  Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap ter could not establish the connection
how do i solve this problem?
how do i solve this problem?  Define a class named Circle with the following properties: List item An integer data field named radius with protected access modifier, and a String data field named colour with private access
how do i solve this question?
how do i solve this question?  1.Define a class named Circle with the following properties: a) An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier
how should i can solve
how should i can solve  Web based program - Input - Person's contact details with Passport Number as Unique Key. Save data in to oracle / MySQL. Output - List of Persons saved in the database. Technology to be used - JSP
Solve it
Solve it  How to calculate the value which contains oparator and operand both using command line argument
how to solve 'Stop Running This Script' Error ?
how to solve 'Stop Running This Script' Error ?  Hi.. When opened the page on IE browser(version : 8.0),it gives an java script error (i.e.Stop Running This Script). I have used jsp/servlet for this. Please help to resolved
how to solve this kind of error in Eclipse IDE?
how to solve this kind of error in Eclipse IDE?   i'm creating the Simple CRUD Using Jsp, Servlet and MySQL program and i'm using the eclipse, and i all most done it, finally i'm going to run myself, it can't be run. i
sir, how to read empty cell in excel file using poi and how to add this empty cell to arraay list and the following is my code
sir, how to read empty cell in excel file using poi and how to add this empty cell to arraay list and the following is my code   //here my file...); } } } sir, the above code is my sample code for reading excel file
How can we solve this puzzle using java ?
How can we solve this puzzle using java ?  Sachin likes sweets a lot...(set); } } What additional code should be added to get the above result. Can someone help how can we write the code
how to code
how to code  how to create mysql coding in php
how to code this?
?Have a good day!ΓΆβ?¬Β? Sample Output Here's what I got when I ran my main
how to code this?
Output Here's what I got when I ran my main method. Entree Menu 1. Hamburger
ModuleNotFoundError: No module named 'bug'
ModuleNotFoundError: No module named 'bug'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'bug' How to remove the ModuleNotFoundError: No module named 'bug' error
ModuleNotFoundError: No module named 'bug'
ModuleNotFoundError: No module named 'bug'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'bug' How to remove the ModuleNotFoundError: No module named 'bug' error
ModuleNotFoundError: No module named 'bug'
ModuleNotFoundError: No module named 'bug'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'bug' How to remove the ModuleNotFoundError: No module named 'bug' error

Ads