Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Java Database Program  September 19, 2014 at 9:44 AM
Write a program in Java that connects to a database and generates a report consisting of the courses in whom the total percentage of number of students failed is more than 80% of the total number of students who appeared in the examinations. Make assumptions wherever necessary. ... View Questions/Answers

jdbc  September 18, 2014 at 3:26 AM
Write a web based student registration application where the students can register online with their enrollment no. You are required to use JSP, Servelet and JDBC ... View Questions/Answers

xml question  September 18, 2014 at 3:24 AM
> mplement award list of MCA 1 st year > as a XML document. The table must > have semester No, student√Ę‚?¨‚?Ęs Enrollment > No, TEE marks of all the theory > subjects, practical subjects and > assignments. ... View Questions/Answers

Advertisement

OptionPane.GetInputDialog. Is it really Modal?  September 17, 2014 at 6:48 AM
I have a button (ReCalc) which loads a dialog with a textbox. If I use the mouse to click 'ReCalc" and to click the 'OK' in the dialog then all is ok. If I put the focus on 'ReCalc' and hit 'Enter' then the dialog loads but the focus is not in the text box. I must put the focus there with the mou... View Questions/Answers

Class and interface in same file and accessing the class from a main class in different package  September 17, 2014 at 6:21 AM
Hello everyone; I was going through some design pattern videos on YouTube, however I have a small doubt on some basic Java concept. I tried searching for solution, but was unable to find one. Below is my query. I have some classes Animal.java, Dog.java... View Questions/Answers

Class and interface in same file and accessing the class from a main class in different package  September 17, 2014 at 6:21 AM
Hello everyone; I was going through some design pattern videos on YouTube, however I have a small doubt on some basic Java concept. I tried searching for solution, but was unable to find one. Below is my query. I have some classes Animal.java, Dog.java... View Questions/Answers

username and password in servlet  September 16, 2014 at 8:08 PM
i'm usng eclipse luna(java programming) Sevlet and apache tomcat8.0 i need to do a login page then after login it must display either invalid user or valid user here is what i done for login page after i login it shows error Login Page... View Questions/Answers

question  September 16, 2014 at 2:08 AM
public class TestSingletone { private static TestSingletone t=null; private TestSingletone() { } public static TestSingletone getTestSingletone() { if(t==null) { t=new TestS... View Questions/Answers

What do you understand by JPA?  September 16, 2014 at 12:58 AM
What is JPA and how it can be integrated? Thanks ... View Questions/Answers

JAVA SWING  September 15, 2014 at 8:50 AM
Hi.... Iam doing project in java...and my front end in swing ..our project is like billing software... then what are the topics i want cover? then how to design? pls help me.... ... View Questions/Answers

Hibernate Query Checker  September 15, 2014 at 1:54 AM
How in Hibernate. We can control that programmer should not make query which hang the system. Like table having more the 20 million of data. Query must have where clause. ... View Questions/Answers

Hii i want a JMS application can anybody help me  September 15, 2014 at 12:24 AM
jms application ... View Questions/Answers

Default value of path variable in Windows 7  September 14, 2014 at 8:41 AM
Hi, In Windows 7 i accidentally deleted path in environment variables. Now ifconfig is not working and its saying invalid command. What is the default value of the path variable in the Windows 7? ... View Questions/Answers

How to Convert SOAP Web service to REST Web service In Java ?  September 13, 2014 at 11:56 AM
I want to Convert SOAP Web service(WSDL) to REST web service in JSON Format with GET,POST action method, where inputing only SOAP End Point will Generate REST Web service. What I know is that JAX-RS api is used to generate REST Web service,and Jersey is a tool for REST. Please tel... View Questions/Answers

Jpa many to many relationship  September 12, 2014 at 10:50 PM
I HAVE Employee, EmpSchedule, EmpSubstitution tables Employee EMP_ID NAME PHONE EmpSchedule EMP_ID Start_date End_date EmpSubstitution EMP_ID Start_date End_id ... View Questions/Answers

How to get length of string in Java?  September 12, 2014 at 5:50 AM
What is the method of String for getting the length? How to get length of string in Java? Tell me code fast. Thanks ... View Questions/Answers

How to split string in Java?  September 12, 2014 at 5:05 AM
Hi, I have a string seperated by ',' comma. How to split the string? Thanks ... View Questions/Answers

How to find hashtable size in Java?  September 12, 2014 at 4:31 AM
Hi, What is the code for Hashtable in Java? How to find hashtable size in Java? Give me the easy code. Thanks ... View Questions/Answers

How to add key value pair in Java  September 12, 2014 at 4:13 AM
Hi, I have to store the key and value pair in Java. How to store key value pair in Java? Thanks ... View Questions/Answers

java key value pair  September 12, 2014 at 4:09 AM
Hi, How to save the java key value pair in Java? Thanks ... View Questions/Answers

Server side validation on dynamically generated fields from more than one table on spring framework.  September 12, 2014 at 1:49 AM
Server side validation on dynamically generated fields from more than one table in spring mvc framework. ... View Questions/Answers

code for inverted pyramid  September 11, 2014 at 1:45 AM
Write the code to print the following pattern. 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 3 4 5 6 5 4 3 2 1 1 2 3 4 5 4 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1 ... View Questions/Answers

Problem to get connection from DAO class to JDBC  September 11, 2014 at 12:56 AM
package controller; import java.sql.Connection; import java.sql.DriverManager; public class ConnectionProvider { private static Connection con=null; //static Connection con=null; static{ try{ Class.forName("DRIVER"); con = DriverManager.getCon... View Questions/Answers

How to access data yearly from DB in C# ?  September 10, 2014 at 1:20 AM
how to access data yearly from database in C#. I have code but i m not able to retrieve data yearly from DB table. string date1 = dateTimePicker1.Value.Date.ToString("dd/MMM/yyyy"); OleDbConnection con = new OleDbConnection(constr); Da... View Questions/Answers

What do you understand by Hibernate in Java?  September 9, 2014 at 10:57 PM
Hey, do you know about Hibernate in Java? I have to learn it for my next project. What is the best and probably most easiest way to learn this Hibernate stuff? How it is beneficial for the any Java based project? Thanks ... View Questions/Answers

What are criteria Queries in Hibernate?  September 9, 2014 at 10:16 AM
Just explain me what is Criteria Query in Hibernate with examples? Thanks ... View Questions/Answers

RegEx  September 9, 2014 at 12:44 AM
I want to know the javascript RegEx code for validation of ( ) parenthesis.. The code is validating the parenthesis but after submit the parenthesis is disappear. what should i do? ... View Questions/Answers

Ticket Pre sell  September 8, 2014 at 8:29 PM
I have to write an application to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4 tickets. No more than a 100 tickets can be sold. Implement a program called ticket seller that prompts the user for the desired number of tickets and then displays the number of remainin... View Questions/Answers

What are the new features of Spring 4.1?  September 6, 2014 at 3:46 AM
Hi, I am trying to find the new features of Spring Framework 4.1. What are the new features of Spring 4.1? Thanks ... View Questions/Answers

Page Loading Time  September 5, 2014 at 1:45 AM
I have a application which has a tab type structure in the JSP front end and Java backend. On clicking a tab, it opens the list by making ajax calls to server and then in the list after double clicking any row, a page opens(ajax calls to server) which has atleast two iframes in it. I want... View Questions/Answers

Fix table's column's name row(1st row of the table) so that it does not move up when the table is scrolled up to view more rows below  September 5, 2014 at 1:30 AM
HI, I have a table in which the data is fetched from database. The table has 20 columns and the total number of rows depends upon the user. The table has a vertical and horizontal scroll bar. Problem: When the vertical scroll bar is used to scroll the table rows up to view more underlying data, t... View Questions/Answers

How to use Associations and Joins in Hibernate?  September 5, 2014 at 1:23 AM
Hi. I am trying to find the examples of Associations and Joins in Hibernate. Give me the code and examples of Associations and Joins in Hibernate. Thanks ... View Questions/Answers

What is Ajax Framework  September 5, 2014 at 1:18 AM
What is Ajax Framework and how it is used in web application programming? ... View Questions/Answers

maths  September 4, 2014 at 8:26 AM
How to multiply 3*5 ... View Questions/Answers

How to write first example in Ajax?  September 4, 2014 at 12:13 AM
Hi, I am beginner in Ajax and want learn it. How can I write first example in Ajax? Thanks ... View Questions/Answers

What are Advantages and Disadvantages of AJAX  September 4, 2014 at 12:08 AM
Hi, I want to know about the Advantages and Disadvantages of AJAX. Let's know the details. Thanks ... View Questions/Answers

What is Ajax?  September 3, 2014 at 11:56 PM
What is Ajax? I have to learn Ajax to work on one project. Thanks ... View Questions/Answers

Sending hidden values  September 3, 2014 at 11:39 PM
how to send more than one hidden values through javascript function . Main purpose is to remove href link (Query string should not appear in url bar) ... View Questions/Answers

Windows 7 refresh DNS  September 3, 2014 at 12:34 PM
Windows 7 refresh DNS How to refresh DNS in Window 7/Windows and linux? Thanks ... View Questions/Answers

550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1)  September 3, 2014 at 12:19 PM
HI, I am getting following error in the outlook while sending the email: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) What to solve this? Thanks ... View Questions/Answers

Tree structure from json whose parents can be dragged and dropped from child  September 3, 2014 at 6:36 AM
I want to create tree structure whose parents will get adjusted dynamically. For example, there are 2 dimentions named child and parent -Parent1 child1 child2 -Parent2 child1 child3 now if i drag child1 to Parent1 I mean if I want to make child elements as parent then tree... View Questions/Answers

Groovy Editor using Eclipse RCP Plugin Development  September 3, 2014 at 2:41 AM
Hi I am about to design a plugin for the groovy editor in eclipse that can highlight the syntax and compiles and runs the groovy code. Does anyone have any idea how to do the compilation of groovy scripts on eclipse and how to run it. If please then let me know .. :)Thank you in advance ... View Questions/Answers

Source code  September 2, 2014 at 11:51 AM
source code of html to create a user login page ... View Questions/Answers

I need jsp code for how to write text field value into property file.  September 2, 2014 at 6:59 AM
Hi , I need to set the text field value into property file using jsp code. Example : Username : Valar , I have entered the value "Valar" in the text field ,then the value should be stored in the property file like Username = Valar. Please this is very urgent ,can you plea... View Questions/Answers

add a new wcf service code to TFS and make it available to create an MSI. of its  September 2, 2014 at 3:37 AM
i need to add a new wcf service in the existing TFS and create a setup project foe the same . But how do i add the solution first to the TFS so that the setup folder recognizes it to create its setup file(.msi). ... View Questions/Answers

java program based on array  September 2, 2014 at 2:48 AM
Create Student class with attributes - marks, name, gender, email with appropriate data types. Create another class StudentDemo which will have main method. Declare array of Student object with size 10. Initialize all 10 elements of this array with new objects. Write logic which will display name... View Questions/Answers

Struts Exception Handling  September 2, 2014 at 1:21 AM
Hi I want to display an user defined error message in my JSP by setting it in Struts 1.x custom handler class when some exception occurs. For example, I have 2 classes, Category and Product. A Category can have more than 1 Product. When an user tries to insert a product with the u... View Questions/Answers

Fastest way to upload huge raw data in database - c#, Java or stored procedure  September 1, 2014 at 9:02 PM
I have huge raw data that needs to uploaded in database. This procedure repeats every 15days. I need to know which method would be fastest to upload this data - Stored procedures, Java or c#. Why? What are the advantages and disadvantages of each method ... View Questions/Answers

Salary and overtime  September 1, 2014 at 2:49 PM
Prompt the user for name and salary and calculate the overtime pay ... View Questions/Answers

java code  September 1, 2014 at 12:26 AM
hello sir, i want to devlop one simple app in java,c,c++ which is made without using database and awt system is multiplex cinema ticket booking. it define/add available screens & current movies.screen should have multiple category of seats operations to be pe... View Questions/Answers

how to apply globalisation to a world wide asp.net application  August 31, 2014 at 11:44 AM
how to apply globalisation concept on a asp.net web page ... View Questions/Answers

create a simple form  August 31, 2014 at 11:29 AM
Helo. i am learning php, and i need help creating below for. Its simple but i need help. Create a form that contains: 1. Name, textbox 2. Submit button If the user inputs the Name textbox and clicks the Submit button, the system must: 1. Display "Good morning, <Name>" if the se... View Questions/Answers

java  August 31, 2014 at 9:10 AM
why java is more reliable language than c ... View Questions/Answers

newyorklife insurance  August 30, 2014 at 11:31 PM
http://www.newyorklife.com/ ... View Questions/Answers

How to install JDK in Centos?  August 30, 2014 at 4:08 AM
Hi, I have to install the JDK on Centos 6 Linux server. Let's know the steps to install the JDK. Thanks ... View Questions/Answers

Standalone Product should support 64 bit java.  August 29, 2014 at 7:18 AM
I am working on a project and I am freshers. Today my Team lead told me to update our product and make it suitable for 64 bit java. Can you please answere me what I have to do. When we deliver our product we bundle jdk 32 bit with it. So now what jdk we should bundle. It s... View Questions/Answers

getElementById not working  August 29, 2014 at 4:16 AM
I have to get value from a hidden input. When I try using document.getElementById("issuer").value it gives me null but when I use document.forms[0].issuer.value it gives me the value of the field. Any guess why? I always thought getElementById was a bette... View Questions/Answers

inheritance  August 29, 2014 at 3:18 AM
write a programwhich has three classes,namely,FirmClass,Animal and Dog,to illustrate how these class Dog inherits from Animal .The class Animal should have a method called move() which prints out the string"Animal is moving"when it called.The class Dog should overide the move() methods in class A... View Questions/Answers

inheritance  August 29, 2014 at 3:07 AM
write a program that allow the user to enter test marks and calculate and display the avarage.Valid mark marks range from 0-100.If no valid mark has been entered,the program should abort,display a message and not attempt to calculate the avarage ... View Questions/Answers

How to display transfer speed with rsync?  August 29, 2014 at 12:25 AM
Hi, I am transferring the big file using rsync. I want to know how to display the transfer information such as transfer speed, total time, done precent ect. with the rsync command? Thanks ... View Questions/Answers

Anser for the Search cusing javascript  August 28, 2014 at 10:52 PM
table { background-color:#F2F2F5; border-width:1px 1px 0px 1px; border-color:#C9CBD3; border-style:solid; } td { color:#000000; font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif; font-size... View Questions/Answers

Anser for the Search cusing javascript  August 28, 2014 at 10:51 PM
table { background-color:#F2F2F5; border-width:1px 1px 0px 1px; border-color:#C9CBD3; border-style:solid; } td { color:#000000; font-family:Tahoma,Arial,Helvetica,Geneva,sans-serif; font-size... View Questions/Answers

javascript code for search in html file  August 27, 2014 at 8:58 PM
Hi, I am looking for javascript code through which we can search data with specific name find in any rows in the table. Example: Id Name P001 A P002 B P003 C P004 P002 P005 e .......... Search: P002 After search result would be show like below format(like filt... View Questions/Answers

Check Digit Question not able to solve..  August 25, 2014 at 7:59 PM
Hi, I need some help asap. I been stuck for this question for more than 3 days. Using Java. User needs to key in identification number (e.g. U0906931E) system check for the first prefix either 'U' || 'A'. If its 'U' then it removes the first, last and the third digit. (096931) t... View Questions/Answers

i want to update values  August 25, 2014 at 6:06 PM
in my form i have 2 submit buttons one for edit and another for update on page load all my details need to fetch from database and it need to insert automatically in to disabled text boxs and once i press the edit button all text boxs need to enable so that i can edit my details and later once i ... View Questions/Answers

SocketException incompatible with java.sql.SQLException  August 25, 2014 at 3:50 PM
My application fails after sometime, if i login my application getting **java.net.SocketException incompatible with java.sql.SQLException** , but once i restart the Server, it'll get back application to normal mode. Can anyone pls help me wi... View Questions/Answers

how to show image as a link which path coming from database  August 25, 2014 at 1:58 PM
iam not getting proper answer for it. I am using netbeans .the url coming instring from database ,want to display as image on jsp . please help me ... View Questions/Answers

display image on jsp  August 25, 2014 at 1:47 PM
how to display image from database which path is coming in string. i want to display image and its discription and price. image is like link. on jsp . i am trieving that image path by which image is downloading on jsp. show i can open it. but i want to display that image on jsp. ... View Questions/Answers

keep spacings between images when adding to scrollpane  August 24, 2014 at 5:00 PM
!alt textI'm adding a list of images from a directory using an arraylist.When images are added,my ScrollPane gets crowded.How can I keep spacings between images ? here's my code File file = new File("D:\SERVER\Server Content\Ap... View Questions/Answers

keep spacings between images when adding to scrollpane  August 24, 2014 at 5:00 PM
!alt textI'm adding a list of images from a directory using an arraylist.When images are added,my ScrollPane gets crowded.How can I keep spacings between images ? here's my code File file = new File("D:\SERVER\Server Content\Ap... View Questions/Answers

Implement The Skeleton Code  August 23, 2014 at 8:03 PM
package jp.co.worksap.global; import java.util.NoSuchElementException; /** The Queue class represents an immutable first-in-first-out (FIFO) queue of objects. @param <E> */ public class ImmutableQueue<E> { /... View Questions/Answers

Implement This Skeleton Code  August 23, 2014 at 7:57 PM
package jp.co.worksap.global; import java.util.NoSuchElementException; /** * The Queue class represents an immutable first-in-first-out (FIFO) queue of objects. * @param <E> */ public class ImmutableQueue<E> { /** * requires default constructor. */ public ImmutableQueue() { // modify this c... View Questions/Answers

Mobile Automation using Appium  August 21, 2014 at 5:24 AM
Hi Can any one guide me how I can do mobile automation using appium and with java scripting language? ... View Questions/Answers

java pattern  August 20, 2014 at 7:42 PM
12345 23451 34512 45123 41234 12345 ... View Questions/Answers

album maker  August 20, 2014 at 5:09 PM
How to make a simple album maker using java API ... View Questions/Answers

Inserting id in place of name to database  August 20, 2014 at 10:45 AM
Hello, I have a database department where I have "id" and "name". I am fetching this data to a jsp form in dropdown list displaying "name" there and Now I wanted to insert data from this form to another table and in place of "name" of department I wanted to insert "id" to this table. ... View Questions/Answers

ArrayList  August 17, 2014 at 10:53 AM
import java.util.*; class ArrayListDemo2 { public static void main(String args[]) { ArrayList al=new ArrayList(); al.add("one"); al.add("two"); al.add("three"); al.add("four"); for(int i=0;i Expected Output:-... View Questions/Answers

Unexpected Behaviour of ArrayList  August 17, 2014 at 10:33 AM
import java.util.*; class ArrayListDemo2 { public static void main(String args[]) { ArrayList al=new ArrayList(); al.add("one"); al.add("two"); al.add("three"); al.add("four"); for(int i=0;i Expected Output:-... View Questions/Answers

Computer forensic application development using JAVA program  August 16, 2014 at 1:53 PM
Write a computer forensic application program in Java for Recovering Deleted Files and Deleted Partitions ... View Questions/Answers

Computer forensic application  August 16, 2014 at 1:18 PM
how to write computer forensic application using java for recovering deleted files and deleted partitions ... View Questions/Answers

extracting column and sorting csv data alphabetically  August 16, 2014 at 12:31 AM
hi here is my code and csv data save it as country.csv file *Australia;AU;1.5 Thaialnd;TH;1.6 India;IN;1.7 Malaysia;ML;1.8 Japan;JP;1.9 Korea;KO;1.10 Bangladesh;BD;1.11 China;CN;1.12 Chile;CH;1.13 Brazil;BR;1.14 Portugal;PG;1.15 Netherlands;NL;1.16 ... View Questions/Answers

Get Duplicate Objects from an ArrayList of Objects  August 13, 2014 at 8:22 AM
public class Order { private String portId; private String action; private String idType; private String id; private BigDecimal amount; public String getPortId() { return portId; } public void setPortId(String portId) { this.portId = por... View Questions/Answers

Why Generics was introduced in Java?  August 12, 2014 at 4:12 PM
Hi, Why Generics was introduced in Java and what is was its motive? Thanks ... View Questions/Answers

When were generics first introduced in Java?  August 12, 2014 at 4:07 PM
Hi, I want to know when were generics first introduced in java? ... View Questions/Answers

which should be learned 1st, either servlets or jsp??  August 12, 2014 at 11:34 AM
which should be learned 1st either servlets or jsp??? help me out asap plz..... ... View Questions/Answers

Java: Searching a string from doc files  August 12, 2014 at 10:56 AM
I want to search a string from DOC, DOCX files in java. Can anyone please help me on this!!! ... View Questions/Answers

how to print HTML using javascript or Jquery  August 12, 2014 at 7:35 AM
is there any way to print a document(created using Html and javascript) without using window.print, which works for all the browser specially chrome and firefox, I have used window.print but this required to enable pop-up and work only in firefox. and I have also used Iframe for print, but this o... View Questions/Answers

DB Insert  August 11, 2014 at 4:18 PM
How to insert XML data into a database column? Column data type is CLOB ... View Questions/Answers

Login modification  August 9, 2014 at 2:57 PM
How can I invalidate a user once he goes back to login page without signing out,I have already tried using session but it doesn't work please help! ... View Questions/Answers

Storing and retrieving data alongwith image in mysql db using jsp  August 9, 2014 at 12:32 PM
I want to store and retrieve the whole data as shown below in mysql db. I've put in my all efforts for building this jsp but I'm not able to understand where's the exact flaw in my code. Can anyone guide me through all this and help me out as it is really important for my project????? THIS IS MY ... View Questions/Answers

Removing the Title Bar of a JFrame  August 9, 2014 at 11:58 AM
How to remove the Title Bar of a JFrame in Swing Application? ... View Questions/Answers

How to make non resizable frame in Swing?  August 9, 2014 at 11:49 AM
I want code for making JFrame no re-sizable in the Swing based desktop application. Share me the code for this purpose. Thanks ... View Questions/Answers

Append Arguments to the URL  August 9, 2014 at 11:00 AM
Hi, How to append the query string to the Current Url when i click on a link. AM using Spring MVC i.e. My URL : http://localhost:8080/Sample/SampleApp?id=1 In my page having multiple links (a href tags). Here i need to add the query string. http://localhost... View Questions/Answers

Runtime error  August 8, 2014 at 6:17 PM
I have written 3n+1 code in java and it gives correct o/p but when i submit my code online for my contest it says runtime error.. how to know where is problem? ... View Questions/Answers

How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl.  August 7, 2014 at 5:58 PM
We have a e-commerce website in ASP.net, c#, Sql server database, now we need to integrate it to payment gateway, Payment gateway provider provide us SOAP Xml request and SOAP xml response format along with wsdl format. As i'm new in development. How i can integrate our website to payment gateway... View Questions/Answers

java code for swaping two number  August 7, 2014 at 4:44 PM
how to code for swaping two number without taking third variables ... View Questions/Answers

Magento  August 7, 2014 at 4:03 PM
How to set my custom template in magento... ... View Questions/Answers

Nb hours between 2 time stamps meets specific criteria  August 7, 2014 at 1:18 PM
sql - I have 2 columns with time stamps and 2 empty columns, named DAYHOURS AND NIGHTHOURS. I want to update DAYHOURS and NIGHTHOURS with Number of hours fall under - 06:00 to 21:00 and 21:00 to 06:00 respectively. Thanks ... View Questions/Answers

Selenium-HP-Alm framework  August 7, 2014 at 12:59 PM
selenium-hp-alm framework? ... View Questions/Answers

how can i display a pdf file in a jtextarea  August 7, 2014 at 10:26 AM
I need to display a pdf file in a jtextfield or in a jtextarea.Atlest i need to displat it in a jframe.I have a button and while clicking on it ,i need to choose the pdf file and need to displat it in my jframe.Also i need to edit it and i have to take the print of the page. ... View Questions/Answers

DMCA.com