Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Description  February 25, 2011 at 2:39 PM
public class PatternExample{ public static void main(String[] args){ int i,j,n=5; for(i=0;i<=n;i++) { System.out.println(); for(j=1;j<=n-i;j++) System.out.print(j); for(j=0;j<2*i;j++) System.out.print(" "); for(j=n-i;j>0;j--) System.out.print(j); } } } OUTPUT IS... View Questions/Answers

Description  February 25, 2011 at 2:39 PM
public class PatternExample{ public static void main(String[] args){ int i,j,n=5; for(i=0;i<=n;i++) { System.out.println(); for(j=1;j<=n-i;j++) System.out.print(j); for(j=0;j<2*i;j++) System.out.print(" "); for(j=n-i;j>0;j--) System.out.print(j); } } } OUTPUT IS... View Questions/Answers

hibenrate  February 25, 2011 at 2:32 PM
disadvantage of the hibernate ... View Questions/Answers

Advertisement

java  February 25, 2011 at 2:29 PM
how to invoke jar files in the java application in netbeans IDE ... View Questions/Answers

Getting content of alert message into textfield  February 25, 2011 at 2:14 PM
how to get content of alert message into textfield using javascript ... View Questions/Answers

Getting content of alert message into textfield  February 25, 2011 at 2:11 PM
how to get content of alert message into textfield using javascript ... View Questions/Answers

different type input in java  February 25, 2011 at 1:27 PM
hiiiii... get input different different type like as DataInputStream,Scanner i want to get source code of these all type of input method. thank ... View Questions/Answers

select Query result display problem  February 25, 2011 at 12:49 PM
Hi, String SQL_QUERY ="from Cc"; Query query = session.createQuery(SQL_QUERY); for(Iterator it=query.iterate();it.hasNext();){ Object[] row = (Object[]) it.next(); System.out.println("ID: " + row[0]); System.out.println("Name: " + row[1]); } ... View Questions/Answers

html program  February 25, 2011 at 12:44 PM
Create a set of checkboxes with the below text: Which company do you work in? Infosys TCS Wipro Microsoft Google None of these If √Ę‚?¨Ň?None of these√Ę‚?¨¬? is selected with any other, show a error message √Ę‚?¨Ň?Invalid selection√Ę‚?¨¬?. ... View Questions/Answers

java  February 25, 2011 at 12:27 PM
sstatic methode rply de........ ... View Questions/Answers

java  February 25, 2011 at 12:19 PM
reply in static method ... View Questions/Answers

dob validation  February 25, 2011 at 12:02 PM
hi i am entering date, month and year in corresponding three drop down list. how to validate the date.....? ... View Questions/Answers

select query using hibernate  February 25, 2011 at 11:59 AM
Hi, can any one tell me to select records from table using hibernate. Thanks ... View Questions/Answers

how to run this program?  February 25, 2011 at 11:42 AM
how to run java swing program ... View Questions/Answers

Hibernate  February 25, 2011 at 11:35 AM
hibernate delete query execution ... View Questions/Answers

java  February 25, 2011 at 10:40 AM
Write a program ‚??checkHighestArmstrong‚?? to find the highest Armstrong number in a given array of integers. If there is no Armstrong number in the input array, then return 0. Armstrong numbers are those numbers whose sum of their own digits to the power of the number of digits is equal to the... View Questions/Answers

iphone sdk-objective c  February 25, 2011 at 10:32 AM
how to delete random value which is got from the random function in an array ... View Questions/Answers

How to Hide Button using Java Swing  February 25, 2011 at 10:31 AM
Hi, I just begin to learn java programming. How to hide the button in Java programming. Please anyone suggest or provide online example reference. Regards, ... View Questions/Answers

php  February 25, 2011 at 10:25 AM
i want to know about php and php plateform required software to make php program and database that used in php program? ... View Questions/Answers

php  February 25, 2011 at 10:25 AM
i want to know about php and php plateform required software to make php program and database that used in php program? ... View Questions/Answers

How to read the .doc/ .docx file in Java Program  February 25, 2011 at 10:23 AM
Hi, I am beginner in Java programming language. Can anybody explain How to read .doc file in Java language. Please provide any online reference so that i try it. Regards, ... View Questions/Answers

java  February 25, 2011 at 10:21 AM
Write a program ‚??checkHighestArmstrong‚?? to find the highest Armstrong number in a given array of integers. If there is no Armstrong number in the input array, then return 0. Armstrong numbers are those numbers whose sum of their own digits to the power of the number of digits is equal to the... View Questions/Answers

PHP Array Sort in Reverse Order  February 25, 2011 at 10:15 AM
Hi, I have just started learning php programming language. How could i develop an application which provide the PHP Array Sort in Reverse Order. Please suggest any online reference or example related to this topic so that i will try. Regards, ... View Questions/Answers

How to create new arraylist using Java  February 25, 2011 at 10:08 AM
hi, I want to develop an small application where i trying to create new arraylist inside the arraylist. Can someone provides online example how to create new arraylist in java programming. thnaks, ... View Questions/Answers

insert data into database  February 25, 2011 at 10:06 AM
hi,thanks for reply just i am doing student information project,frontend is jsp-servlet and backend is msaccess2007. i prepared one page like these details studentname,group,address,marksdetails and studentmaster is the database table name. i am using same details. Now give the da... View Questions/Answers

determine the top 10 highest and 10 lowest in java  February 25, 2011 at 9:54 AM
hello, I have a case, where there are tables in the database and have a file borrowing that contains the codebooks and namesmembers. I want to make 10 the highest rank anyone who borrows a book and who the 10 smallest borrow book... View Questions/Answers

Java Barcode Program with Oracle database  February 25, 2011 at 9:19 AM
Hi Everyone, I need help to develop my new project, am going to do with barcode s/w, am very new to this ...Please help me out... Once the barcode is scanned i need to load the part no and serial no of the item being scanned to Oracle 10g database. I dont have any idea abt this...Please c... View Questions/Answers

java pattern code for a given words  February 25, 2011 at 7:18 AM
java pattern code for a given words pattern ... View Questions/Answers

How can combine threads and buttons?  February 25, 2011 at 1:32 AM
I would like to start an application, stop it and restart it again and stop etc. I tried the following code. It does start and stop, but I get an error when I try to restart. Any suggestions? /* * To change this template, choose Tools | Template... View Questions/Answers

Browser making by java coding  February 24, 2011 at 11:51 PM
import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; public class Browser extends JFrame implements HyperlinkListener,ActionListener { public static void main(String args[]) { ... View Questions/Answers

Java inheritance  February 24, 2011 at 11:43 PM
can the child access protected content of the parent if the child is in a different project ... View Questions/Answers

servlets  February 24, 2011 at 11:42 PM
How to open and read the contents of a text file in servlets? ... View Questions/Answers

Servlet  February 24, 2011 at 11:40 PM
Can a user defined function be included in a servlet? I need information regarding servlet syntax and not JSP. ... View Questions/Answers

UIWebview load url  February 24, 2011 at 11:27 PM
How to load website url in UIWebview? Tell me code for UIWebview load url of a website Thanks ... View Questions/Answers

tell me coding for this  February 24, 2011 at 11:19 PM
Write an application that displays the integer equivalents of the following character...A ... View Questions/Answers

Drill down in Struts 2.0.14  February 24, 2011 at 10:39 PM
Hello Tutor, I am developing my project in Struts 2.0.14. I have to make drill downs in the form of tree structure and all the values that populate in tree are showing up from Oracle Database. For Example, I have many countries list in which drilling down by country gives my its states and now d... View Questions/Answers

Drill down in Struts 2.0.14  February 24, 2011 at 10:39 PM
Hello Tutor, I am developing my project in Struts 2.0.14. I have to make drill downs in the form of tree structure and all the values that populate in tree are showing up from Oracle Database. For Example, I have many countries list in which drilling down by country gives my its states and now d... View Questions/Answers

question  February 24, 2011 at 8:29 PM
pls ans me starting point of the jsp ... View Questions/Answers

find the marks for a rank from a series of marks  February 24, 2011 at 7:45 PM
find the marks for a rank from a series of marks ... View Questions/Answers

testng  February 24, 2011 at 7:28 PM
what should i do to run a method before and after each in the test suite of testng ... View Questions/Answers

problem running a servlet on tomcat.  February 24, 2011 at 7:12 PM
i have followed the steps given here. on typing "http://localhost:8080" i do get the apache tomcat page. i suppose that should mean that my tomcat server is up and running. but whn i try to run my servlet that is placed in the directories as it has been mentioned here, the browser responds "HTT... View Questions/Answers

help  February 24, 2011 at 7:04 PM
what is rung here ??? i have 2 errors ????? import java.util.Scanner; public class Initials { public static void main (String [] args) { String firstname,lastname; System.out.println("Hello,what is your first name?"); Scanner ... View Questions/Answers

modularity  February 24, 2011 at 6:57 PM
what is modularity in java ... View Questions/Answers

modularity  February 24, 2011 at 6:57 PM
what is modularity in java ... View Questions/Answers

Focus method not working in firefox  February 24, 2011 at 6:49 PM
object.focus() is not working in firefox and chrome the element is not focused what was the problem? ... View Questions/Answers

help me plz befor 27 februry  February 24, 2011 at 6:28 PM
what is rung with this ?? help me plzzzz import java.util.Scanner; public class Initials { public static void main (String [] args) { String firstname,lastname; System.out.println("Hello,what is your first name?"); Scanner ke... View Questions/Answers

delete row from a table using hibernate  February 24, 2011 at 6:25 PM
//code in java file String hql="delete from CONTACT c where ID=6"; Query query=session.createQuery(hql); //error when executing above code CONTACT is not mapped [delete from CONTACT] int i=query.executeUpdate(); ... View Questions/Answers

how to create this structure in json using grails  February 24, 2011 at 6:08 PM
{ "query": { "type": "cluster", "view": "accountActivity", "regions": [2342,334,241,13], "companies": [43228583,433421683,342427783], "departments": [1,2,4,6], "brands": [23,25,62,613] } } ... View Questions/Answers

retrive data from database  February 24, 2011 at 5:59 PM
hi.. i made a application form. it's have attribute s.no,name,roll no and i enter a few records. now i want to view all record not in database access sheet i want to view it at any another application. thanx ... View Questions/Answers

delete row from a table in hibernate  February 24, 2011 at 5:48 PM
is there method to delete row in a table using hibernate like save(-) to insert row ... View Questions/Answers

GETTING ALERT MESSAGE  February 24, 2011 at 4:57 PM
how to get an alert message when radio button is selected instead of checkbox ... View Questions/Answers

Hibernate application  February 24, 2011 at 4:44 PM
Hi, I am using Netbeans IDE.I need to execute a **Hibernate application** in Netbeans IDE.can any one help me to do this. ... View Questions/Answers

java  February 24, 2011 at 4:33 PM
occurrence of a particular digit? ... View Questions/Answers

GETTING AN ALERT MESSAGE  February 24, 2011 at 4:22 PM
how to get an alert message, if i select radio button instead of checkbox(associated with 3 dropdown list) ... View Questions/Answers

executing Hibernate application  February 24, 2011 at 4:18 PM
when i am executing the hibernate application the following error occured. log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). /hibernate.cfg.xml not found log4j:WARN Please initialize the log4j system properly. Exception in thread "main" java.lang.NullPoint... View Questions/Answers

Java Script  February 24, 2011 at 3:12 PM
why we are using java script ... View Questions/Answers

Grouping Textboxes  February 24, 2011 at 2:41 PM
How to Group the Textboxes in Java ... View Questions/Answers

themes in struts2  February 24, 2011 at 1:48 PM
i want to create themes in strut2 can any one tell the step by step procedure of how to create it.with example links thanks in advance.......... ... View Questions/Answers

question  February 24, 2011 at 1:19 PM
what is exception hirachy? ... View Questions/Answers

full description of program code  February 24, 2011 at 1:13 PM
import java.util.*; class StringExample6 { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.println("Enter string:"); String str=input.nextLine(); StringTokenizer stk=new StringTokenizer(str); String vowels... View Questions/Answers

logic for pattern program  February 24, 2011 at 1:09 PM
what's the logic for create pattern program how can i create any pattern program with in minute. like this 123454321 * 1234 4321 *** 123 321 ***** 12 21 *** 1 1 * 123321 1 1 12 21 1212 2323 1 1 123123 ... View Questions/Answers

database is connected but not insert the data  February 24, 2011 at 12:57 PM
hi, i am getting connected to database.Retrive the data also but cannot insert the data into database. i am using msaccess2007.my inserstudententry.jsp code is follows,pls help me <%@page language="java" import="java.sql.*" import = "java.util.*" import = "... View Questions/Answers

full description of program code  February 24, 2011 at 12:53 PM
import java.util.*; class StringExample6 { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.println("Enter string:"); String str=input.nextLine(); StringTokenizer stk=new StringTokenizer(str); String vowels... View Questions/Answers

java  February 24, 2011 at 12:39 PM
i need particular year of total month and days in java program ... View Questions/Answers

jdbc  February 24, 2011 at 12:29 PM
write a java program to accept the details of employee(eno,ename,sal)from the user and insert into the database(use awt). ... View Questions/Answers

disable keyboard in java applet  February 24, 2011 at 12:14 PM
How to disable key board of my client in an java applet embedded in a website while the applet is running.? Plz help. ... View Questions/Answers

Anand  February 24, 2011 at 11:43 AM
SOAP SUPPORTS HOW MANY PROTACALS? ... View Questions/Answers

Getting path name of uploading file in struts 2.1.8  February 24, 2011 at 11:34 AM
In my question I used struts 2.8.1 instead of 2.1.8. Sorry. ... View Questions/Answers

How do I compile the registration form?  February 24, 2011 at 11:12 AM
How do I compile the registration form as stated at the bottom of the following page (URL is below). Do I need ANT? If so, please give instructions. I am a student. http://www.roseindia.net/struts/hibernate-spring/user-registration-action.shtml ... View Questions/Answers

Getting path name of uploading file in struts 2.8.1  February 24, 2011 at 11:11 AM
Hai! I am using struts 2.8.1. I want to upload file into database with the path name. How can I can get the original path name of the file in struts 2.8.1? It only display the temporary path not the original path. What I do? ... View Questions/Answers

java codes  February 24, 2011 at 4:00 AM
hi .. i need a login code in java with restriction that with 3 error attempts then the program will terminate .. thanks! ... View Questions/Answers

arrays  February 24, 2011 at 2:33 AM
using arrays in methods ... View Questions/Answers

Return keyword  February 24, 2011 at 1:52 AM
how do we use return in methods? ... View Questions/Answers

project  February 24, 2011 at 1:45 AM
i need a project in java backend sql ... View Questions/Answers

jdbc odbc  February 24, 2011 at 1:35 AM
i have two tables in database 1table's attribute is foreign key of another in this case how to retrive value from both table and show in a gridview combine using java code ... View Questions/Answers

Static method  February 24, 2011 at 1:29 AM
what is a static method? ... View Questions/Answers

Jdbc  February 24, 2011 at 1:28 AM
HI!I am trying to connect to oracle 10g from a servlet but keep getting "Internal server error" when trying to run the servlet.I am using eclipse galileo and tomcat 5.5.Can anyone help asap?please ... View Questions/Answers

java  February 23, 2011 at 9:24 PM
what is static data members? ... View Questions/Answers

Tiles-def.xml  February 23, 2011 at 8:58 PM
tiles-def.xml <put name="title" value="eSRS Export To Excel" /> here the value i want to get from resource bundle. ... View Questions/Answers

Tiles-def.xml  February 23, 2011 at 8:57 PM
tiles-def.xml here the value i want to get from resource bundle. ... View Questions/Answers

Tiles-def.xml  February 23, 2011 at 8:57 PM
tiles-def.xml "" here the value i want to get from resource bundle. ... View Questions/Answers

Tiles-def.xml  February 23, 2011 at 8:55 PM
tiles-def.xml here the value i want to get from resource bundle. ... View Questions/Answers

Counting  February 23, 2011 at 8:35 PM
Pl sir make a program which generate the following output on pop up menu. 1 12 123 1234 12345 123456 1234567 12345678 123456789 ... View Questions/Answers

how to write this program  February 23, 2011 at 7:10 PM
Write a program in java which calculates a student√Ę‚?¨‚?Ęs overall gpa for a semester and then displays a student√Ę‚?¨‚?Ęs GPA. This program should take a student√Ę‚?¨‚?Ęs First Name, Last Name a GPA and number of credit hours for 6 courses. The program should then calculate the over GPA for t... View Questions/Answers

database  February 23, 2011 at 7:04 PM
Is it possible to let the user first type the database and table name in textfields and then provide him a taxt area to type an insert query to insert data in that table and then execute the query.....The project is in netbeans swings....Plz help me Thank you ... View Questions/Answers

Round of to a multiple of 5 without using function  February 23, 2011 at 6:56 PM
Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively... ... View Questions/Answers

Round of to a multiple of 5 without using function  February 23, 2011 at 6:56 PM
Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively... ... View Questions/Answers

Printing Values of Resultset to Html Table  February 23, 2011 at 6:48 PM
I have a resultset and I need to collect the resultset values into the arraylist into a table. arraylist also contains timestamp values. Please help me in this regards Thanks in advance ... View Questions/Answers

insert data into database  February 23, 2011 at 6:38 PM
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: General error org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageC... View Questions/Answers

Executing anonymous pl/sql block and get resultset in Java  February 23, 2011 at 6:31 PM
Hello All, I would like to execute the anonymous pl sql block and need to get the resultset object. I got the code which can be done by using cursors inside the pl sql block. But the pl sql block itself will come from the database as text. So i cant edit that pl sql block. And it... View Questions/Answers

Server side validation vs client side validation  February 23, 2011 at 5:49 PM
Can any one tell me the difference between these two different ways of Validation? Also features of Server side validation vs client side validation. ... View Questions/Answers

Phone number validation using regular expression  February 23, 2011 at 5:44 PM
Explain phone number validation using regular expression in JavaScript. ... View Questions/Answers

library system  February 23, 2011 at 5:29 PM
hi to all..please help me how to make a library system using a java program..please response me ... View Questions/Answers

library system  February 23, 2011 at 5:29 PM
hi to all..please help me how to make a library system using a java program..please response me ... View Questions/Answers

datetime picker in struts2  February 23, 2011 at 5:13 PM
i used datetimepicker and i created getters and setters with retutn type string when im reading date value which i entered through getter im getter date as well as time i want date only how can i get only date ... View Questions/Answers

PDF Copy(File) has many pages.  February 23, 2011 at 4:50 PM
Dear All, I make Jasper Report it compile ,run and view properly. when i am try to send it pdf format it also sent it it pdf properly. but a that PDF Copy(File) has many pages. single copy some time has 4,7,31 or 34 pages. please help me it is very critical for me. I a... View Questions/Answers

full description of program code  February 23, 2011 at 4:31 PM
escribe me below code how this program code is make and work, and those method is use in this why? import java.util.*; class SortList { public static void main(String[]args) { Scanner input=new Scanner(System.in); System.out.println("Enter the Elements:"); ArrayList<String> List=new Ar... View Questions/Answers

decription of program code  February 23, 2011 at 4:29 PM
Describe me below code how this program code is make and work, and those method is use in this why? import java.util.*; class SortList { public static void main(String[]args) { Scanner input=new Scanner(System.in); System.out.println("Enter the Elements:"); ArrayList<String> List=new A... View Questions/Answers

question  February 23, 2011 at 3:57 PM
can we write calss A extend StringBuffer? ... View Questions/Answers

server client comms  February 23, 2011 at 3:55 PM
i am trying to return frame through server client comms anyone can help me about that i want to return a class to client side but my class defined in server side ... View Questions/Answers

DMCA.com