Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Floyd's triangle  October 23, 2010 at 10:56 AM
Write a 'for' statment that will print Floyd's traingle. ... View Questions/Answers

illegal start of type  October 23, 2010 at 10:50 AM
Hello! I'm very new to writing java. And I keep getting the "Illegal Start of Type" error. I've tried everything to fix it. can anyone help me? import java.awt.Dimens import java.awt.*; import javax.swing.*; import java.util.List; import java.util.LinkedList; import java.util.Iterator; im... View Questions/Answers

java leap year  October 23, 2010 at 10:48 AM
write a java program that takes an input as a keyboard inputs or command line argument, a year between 1800 and 2000 and then reports whether itis a leap year. Aleap year is an integer greater than 1584 that is either divisible by 400 or is divisible by 4 but not 100 ... View Questions/Answers

Advertisement

how to find the given date is sunday  October 23, 2010 at 10:42 AM
how to find the given date is sunday in java? ... View Questions/Answers

Illegal Start of Type  October 23, 2010 at 10:41 AM
Hello! I'm very new to writing java. And I keep getting the "Illegal Start of Type" error. I've tried everything to fix it. can anyone help me? import java.awt.Dimens; import java.awt.*; import javax.swing.*; import java.util.List; import java.util.LinkedList; import java.util.Iterator; i... View Questions/Answers

Use javascript loops..  October 23, 2010 at 10:31 AM
Write a Javascript code, so that numbers appear in following format, 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 for n=5. Input 'n' value from user. ... View Questions/Answers

Sync Threads  October 23, 2010 at 9:23 AM
"If two threads wants to execute a synchronized method in a class, and both threads are using the same instance of the class to invoke the method then only one thread can execute the method at a time." This is what i read in roseindia for sync thread can anyone give an perfect example for this??<... View Questions/Answers

Synchronization on threads  October 23, 2010 at 9:11 AM
what is the difference between synchronized method and block?? ... View Questions/Answers

java que  October 23, 2010 at 8:43 AM
print tringle like this A A B A B C A B C D ... View Questions/Answers

numbers divisible by 5 and 6  October 23, 2010 at 8:18 AM
Find the first ten numbers which are greater than Long.MAX_VALUE divisible by 5 and 6. ... View Questions/Answers

java  October 22, 2010 at 11:29 PM
how to add two child threads in multi thread in java ... View Questions/Answers

menuItem and actionPerformed  October 22, 2010 at 7:42 PM
i tried to do notepad application. but in that,when i clicks CUT menuItem of EDIT menu,i wanna get the MENU label("edit") inside the actionPerformed.how could i get it ... View Questions/Answers

hibernate  October 22, 2010 at 6:53 PM
how to impot mysql database client jar file into eclipse for hibernate configuration ... View Questions/Answers

Week calculate start from friday  October 22, 2010 at 5:41 PM
My problem is to calculate how many weeks have a month. Note that my weeks have to start on Friday! I have three combo boxes. First display year. Second one display month. Third one display number of weeks for the selected month. example: if i select year in 2010 month in May. 1s... View Questions/Answers

javax.obex.ClientSession.get()  October 22, 2010 at 5:36 PM
following code for reading server file using bluetooth package phone; /*original imports */ import java.io.*; import java.util.*; import javax.microedition.io.*; /* switch of J2se netbeans dev kit */ import javax.bluetooth.*; // import javax.obex.*; /* add the de.aventna obex */ ... View Questions/Answers

alter data type  October 22, 2010 at 4:14 PM
alter data type of subName column for subject table to varchar(40) ... View Questions/Answers

Browser issue  October 22, 2010 at 4:14 PM
how can i close popup windows in mozilla browser and return back to the parent page. ... View Questions/Answers

jdbc  October 22, 2010 at 4:10 PM
I compiling my jdbcodbc progrm. D:\Java\jdk1.6.0\bin>javac JdbcExample.java JdbcExample.java:12: cannot find symbol symbol : method ClassforName(java.lang.String) location: class JDBCExample ClassforName("sun.jdbc.odbc.JdbcOdbcDriver"); ^ I got this error.can any one tell me,why this error? ... View Questions/Answers

How to calculate number of weeks in a specified month  October 22, 2010 at 2:51 PM
I am create one program that contain three combo box. 1.cmbyear 2.cmbmonth 3.cmbweek i am select year and month. then automatically calculate number of weeks in a specified month for the year. for example if i choose year in 2008 and month in october then display number of weeks i... View Questions/Answers

how to create text file from jsp and provide downlode option  October 22, 2010 at 2:16 PM
HI Deepak , thanks for your post u really doing great work for people who is new in java/j2ee tech. my question is who do i make a jsp output in the form of text file so that pepole can downlode that text file or may be some other file formate this my jsp page <... View Questions/Answers

J2ME connectivity to ms access  October 22, 2010 at 1:36 PM
How to establish client server connectivity to access ms access database on the server side? I have made the odbc connection. Plz help me in the coding part.. Dont know how to start. ... View Questions/Answers

CAMERA APPLICATION J@ME  October 22, 2010 at 1:05 PM
i had written the code to capture image in j2me it is running well on emulator but not running on nokia 6303 if anyone knows please help me at maheshwari1986ashish@gmail.com ... View Questions/Answers

Display JSP selected listbox and checkbox in xml-please help me  October 22, 2010 at 12:46 PM
Hi, I have three Listbox on my jsp page. I want to do following: ByDefault first list will be filled by database (stored in mysql), When User select something from 1st list box second will fill accordingly by database using jsp. When user select something from 2nd ... View Questions/Answers

configure mail sever  October 22, 2010 at 12:14 PM
which is the best server for java mail? ... View Questions/Answers

How to access Contacts from gmail using LDAP in JSP dropdown list  October 22, 2010 at 11:47 AM
HI, I am creating a JSP page in which i have to make a dropdown box, and access gmail contacts in that drop downlist using LDAP. Can any one plz help me out...... PLEASE reply.... Thanks a lot for the people who help me previously...... ... View Questions/Answers

marked interface  October 22, 2010 at 11:22 AM
how jvm work with marked interface?(that means how it will know its behaviour with out any methods) ... View Questions/Answers

Importing hibernate project  October 22, 2010 at 11:12 AM
What are the steps to import hibernate project in myeclipse? ... View Questions/Answers

need ENUM examples  October 22, 2010 at 10:59 AM
i need enum sample examples ... View Questions/Answers

need ENUM examples  October 22, 2010 at 10:59 AM
i need enum sample examples ... View Questions/Answers

need ENUM examples  October 22, 2010 at 10:59 AM
i need enum sample examples ... View Questions/Answers

need ENUM examples  October 22, 2010 at 10:59 AM
i need enum sample examples ... View Questions/Answers

Thread in java  October 22, 2010 at 10:24 AM
which method will defined in thread class ... View Questions/Answers

jdbc  October 22, 2010 at 10:20 AM
I already create the connection.Again it will show the same error. ... View Questions/Answers

Hibernate log4j  October 22, 2010 at 8:39 AM
Hi, when i run the FirstExample.java given in the tutorial, i got the right output, what my doubt is from where i am getting the log4j messages, like log4j:WARN no appenders could be found for logger (org.hibernate.cfg.Environment) Thanks in Advance. Raju Rudru. ... View Questions/Answers

mobile banking login program  October 22, 2010 at 12:14 AM
static Display dis; static Login destroy; public Login() { dis=Display .get Display(this); } public void startApp() { destroy=this; LoginScreen loginscreen= new LoginScreen(); dis.setCurrent(loginscreen.loginFormMethod()); } ... View Questions/Answers

prime numbers application  October 21, 2010 at 10:18 PM
how to add a comment indicating that the method will determine if a number is a prime number. In the next line add the method header for this method which will be called isPrime. This method returns the value of a type boolean and takes an argument of type int, the parameter will be named number.... View Questions/Answers

servlet  October 21, 2010 at 10:17 PM
how to read a file from different folder using filereader in servlet ... View Questions/Answers

Need help in java programming  October 21, 2010 at 8:50 PM
Hello. Can someone please help me with writig the following programm. Assignment 20% Presentation 10% Mini Test 10% Exam 60% Java program that accepts the following details: student ID number, full name and marks for the 4 assessments above as input. It should then determin... View Questions/Answers

Hibernate  October 21, 2010 at 7:29 PM
I downloaded the zip file given in the tutorial of Hibernate. I followed all th steps as given in the tutorial, but a build error is coming in all the java files, saying that the import org.hibernate.*; can not be resolved. How can i rectify that error? ... View Questions/Answers

Using Single Quote in Reciepient mail Id.  October 21, 2010 at 6:55 PM
Hi, Is it possible to send a mail to a Mail Account having singlequote (Ex: prasad'g@gmail.com) by using JAVA Mail API. Could you please give me the clarification....... ... View Questions/Answers

producer and concumer Interface program  October 21, 2010 at 6:40 PM
I need producer and concumer Interface program ... View Questions/Answers

How to read a line from a doc file  October 21, 2010 at 5:32 PM
How to read a line from a doc file ... View Questions/Answers

Java  October 21, 2010 at 5:23 PM
I compiling my jdbcodbc progrm. D:\Java\jdk1.6.0\bin>javac JdbcExample.java JdbcExample.java:12: cannot find symbol symbol : method ClassforName(java.lang.String) location: class JDBCExample ClassforName("sun.jdbc.odbc.JdbcOdbcDriver"); ^ I got this error.can any one tell me,why this error? ... View Questions/Answers

Caringorm in flex  October 21, 2010 at 5:20 PM
Hi.... What is caringorm ? please tell me about that Thanks ... View Questions/Answers

adding some value to new column  October 21, 2010 at 5:12 PM
how to update a column having some value into new column that also have some value i need to add this two value in java using result set we can get all the column data but how to add these value ... View Questions/Answers

java mail  October 21, 2010 at 5:09 PM
Hi deepak, sorry to trouble again but with reference to apache mail server (james) tutorial i use the link that u have provided it redirects to apache offical site what there 4 zip and taz files are available for downloading and i have downloaded those 4 but afer unzippi... View Questions/Answers

layoutChrome in flex  October 21, 2010 at 4:42 PM
Hi..... I want to know about What is layoutChrome ? Thanks ... View Questions/Answers

measure in flex  October 21, 2010 at 4:40 PM
Hi...... Please explain the following methods commitProperties, updateDisplayList, measure. Thanks ... View Questions/Answers

leave balance  October 21, 2010 at 4:40 PM
hi, <<<<<<<< i have a table called emp-leave_balanced(leave-id,leave balance,etc are column),in leave balance column each employee has some leave balance (like 4,5,8 etc)i need to add this leave-balance to another c... View Questions/Answers

Transparent NavgationBar on iPhone  October 21, 2010 at 4:36 PM
hello, how can we make NavgationBar Transparent ?? give some code?? ... View Questions/Answers

layoutChrome() in flex  October 21, 2010 at 4:31 PM
Hi...... What is layoutChrome()? When does it get called? Please tell me about that...... Thanks ... View Questions/Answers

IFlexDisplayObject in flex  October 21, 2010 at 4:27 PM
Hi....... Where do you normally use IFlexDisplayObject? Thanks ... View Questions/Answers

jsp drop down-- select Option  October 21, 2010 at 4:13 PM
how to get drop down populated dynamically ... View Questions/Answers

updating column automatically based on system date  October 21, 2010 at 4:12 PM
hi, can any one give solution for my question i have a table called leave balanced(leave-id,leave balance,etc are column),in leave balance column each employee has some leave balance (like 4,5,8 etc)i need to add this leave-balance to another colu... View Questions/Answers

Java Hello World code example  October 21, 2010 at 3:58 PM
Hi, Here is my code of Hello World program in Java: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } } Thanks ... View Questions/Answers

Interfaces in flex  October 21, 2010 at 3:52 PM
Hi..... Please tell me about... What are - IStyleClient, IChildList, ILayoutManager, IToolTipManagerClient, IInvalidating, IValidatorListener, IFlexModule, IAutomationObject, IPropertyChangeNotifier, IRepeaterClient, ISimpleStyleClient, IStateClient, IConstraintClient ? Thanks... View Questions/Answers

Will iPhone Safari support Ajax?  October 21, 2010 at 3:35 PM
hello, I want to know that Safari support Ajax ??? ... View Questions/Answers

json  October 21, 2010 at 3:34 PM
how connect ajax with json ... View Questions/Answers

Graphics class in flex  October 21, 2010 at 3:29 PM
Hi.... What does clear() do in graphics class? please tell me about that.... Thanks ... View Questions/Answers

Movie clip in flex  October 21, 2010 at 3:11 PM
Hi... What is a MovieClip? IUIMovieClip? please give me an example. Thanks ... View Questions/Answers

software developer  October 21, 2010 at 3:09 PM
only disable login page back button in asp.net using c# ... View Questions/Answers

software developer  October 21, 2010 at 3:09 PM
only disable login page back button in asp.net using c# ... View Questions/Answers

How to connect to the database to my application if my database is made up in oracle  October 21, 2010 at 2:53 PM
How to connect to the database to my application if my database is made up in oracle ... View Questions/Answers

UITextfield checking  October 21, 2010 at 2:52 PM
hello,, how can i check UITextfield length or any specific value.. ... View Questions/Answers

How to connect to database to my application if the database is made up in oracle  October 21, 2010 at 2:49 PM
How to connect to database to my application if the database is made up in oracle ... View Questions/Answers

screenshot from code  October 21, 2010 at 2:36 PM
hello, how can we Take screenshot from code in iphone ?? ... View Questions/Answers

core data  October 21, 2010 at 2:28 PM
hello, what is the correct way of initilizing a class inheriting from NSManagedObject? give me some code for it.. ... View Questions/Answers

Spring with scheduler  October 21, 2010 at 2:27 PM
how quartz scheduler relates with spring.need example with spring and quartz scheduler ... View Questions/Answers

Get current country from iPhone ??  October 21, 2010 at 2:21 PM
hello, I want to get the current country in the iPhone settings. Can anyone tell me how to get the current country in iPhone application. ... View Questions/Answers

regexkitlite ?  October 21, 2010 at 2:15 PM
hello, what is regexkitlite ?? why we are using this file in our application?? ... View Questions/Answers

write a program to create a user defined  October 21, 2010 at 1:59 PM
plz send me code ... View Questions/Answers

How can I connect my database to my application ?  October 21, 2010 at 1:59 PM
How can I connect my database to my application? ... View Questions/Answers

How can I to my database to my application  October 21, 2010 at 1:56 PM
How can I to my database to my application ... View Questions/Answers

junit  October 21, 2010 at 1:24 PM
why we are going to junit? ... View Questions/Answers

Sample Ajax Code  October 21, 2010 at 12:04 PM
Sample Ajax Code for getting values from another JSP ... View Questions/Answers

How to Run First Java Bean Program ?  October 21, 2010 at 12:01 PM
Hi My Dear Friend I can run many Java Programs Like, Applet,Swing,RMI ,Socket Programming and Java Servlet too But Now I need that How to run Java Bean Now I have BDK1.1 But still don't know that how run this... I have this bdk dir... \bdk1_1\beans\beanbox in this dir. just a ru... View Questions/Answers

jaa  October 21, 2010 at 11:38 AM
import java.* ... View Questions/Answers

file attach  October 21, 2010 at 10:45 AM
how pick up the file from database and attach it to the mail in java ... View Questions/Answers

Solve using only Javascript loops...  October 21, 2010 at 10:14 AM
Write a JavaScript code, 1) to find a number of unique letters in string. (Eg. if keyword is unique, Unique count will be '4') 2) so that numbers appear in following format, 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 ... View Questions/Answers

how to debug parameters in the hibernate query  October 21, 2010 at 7:13 AM
how to debug parameters in the hibernate query ... View Questions/Answers

SHOPPING COUNTER  October 21, 2010 at 2:11 AM
i need to do the system about the item from the small shop. how can i calculate the item with price. if user choose more quantity from it. 1. ikan masin (price = 1.50) 2. garam (price = 1.00) 3. buttercup (price = 1.00) 4. mentega (price = 2.00) 5. honey (price = 3.00) if customer... View Questions/Answers

leap year  October 21, 2010 at 12:40 AM
how to create class for leap year. It is leap year if it is divisible by 4 and 400 but not 100? ... View Questions/Answers

java beginnerssss!!!  October 20, 2010 at 11:57 PM
write a program in java that check two values rather it is even or odd if both entries are even then multiply both vaalue and if both are odd then bigger term minus from lesser and if one even and one entry is odd then the msg display is wrong entry ... View Questions/Answers

Displaying checked checkbox in same page as well as print on another page ....also add next pages cheches checkbox into previous list  October 20, 2010 at 11:03 PM
1)checkboxExampl.jsp var xmlHttp;var arr= new Array() ;Array.prototype.clean = function(deleteValue) { for (var i = 0; i < this.length; i++) { if (this[i] == deleteValue) { this.splice(i, 1); i--; } } return t... View Questions/Answers

program  October 20, 2010 at 9:42 PM
sample jsp programs for beginners....... ... View Questions/Answers

get integer at run time  October 20, 2010 at 9:39 PM
how to get integer value at run time in j2ee using servlets ... View Questions/Answers

hi  October 20, 2010 at 8:37 PM
sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter in my frame should reach mysql and should get saved in a database which ... View Questions/Answers

Dynamically creating a form in gwt?  October 20, 2010 at 8:35 PM
how can i create a gwt form by retrieving fields dynamically from a map? i have all the fields set in the data base and i am retrieving them in a map and i want to create fields dynamically in the gwt file so can you help me out by taking a sample code of 2-3 different fields in a map and creatin... View Questions/Answers

editable datagrid  October 20, 2010 at 6:22 PM
How to create a editable datagrid in jsp,struts1.3,glassfish v2.x application server and database oracle using netbeans6.8 ide? ... View Questions/Answers

Want to display Arraylist items on same row in JSF  October 20, 2010 at 6:08 PM
I want do display values of one arraylist on same row using datatable? If i use h:column, then it goes on different row. Please tell me, how I can do it? ... View Questions/Answers

Thread  October 20, 2010 at 5:23 PM
there are two threads running at a time.. when am updating a values in database. both thread halt and stop for moment till it get updated into database... so i dnt want thread to get halts for tht moment of period. whats solution for it ... View Questions/Answers

Naveen  October 20, 2010 at 3:49 PM
how to connect with Mysql database to SAML application using Struts application ... View Questions/Answers

Login Program  October 20, 2010 at 3:14 PM
Login program in struts to set username & password in session. and this session is available in all screens for authentication ... View Questions/Answers

Jsp include page problem  October 20, 2010 at 3:04 PM
I have included footer.jsp in all my pages. It is working in all pages except search.jsp. In search.jsp (Old footer.jsp content is displayed ) How can I rectify this? ... View Questions/Answers

Problem to display checkbox item  October 20, 2010 at 3:02 PM
Hi, Following is my code: <%@page import="java.sql.*"%> <h1>example.jsp</h1> <table border="1"> <tr> <td></td> <th>domainName</th> </tr> <% try{ Connection conn = null; Class.f... View Questions/Answers

jtable problem  October 20, 2010 at 2:17 PM
how to make a cell text hypertext? ... View Questions/Answers

java mail  October 20, 2010 at 2:04 PM
sir, I need a source code to understand the working of java mail.plz help me. Reply so on. Thanks, mohit ... View Questions/Answers

Java Questions  October 20, 2010 at 1:15 PM
How can I set classpath for java classes through java code..so that i dont need to set it manually.. It should get set through my application? ... View Questions/Answers

project  October 20, 2010 at 1:12 PM
write a program in java to develop a port scanner for common devices(HTTP,FTP,Telnet) ... View Questions/Answers

jdbc odbc connection  October 20, 2010 at 12:07 PM
i need a program in java which uses a jdbc odbc connection ... View Questions/Answers

DMCA.com