35,619 Topics

Member Avatar for
Member Avatar for henrock143

well....my teacher ask me to create a program that reads set of integer's and then finds and prints the sum of the even and odd integers....could someone help me in dis program... and can u make it simple plss....ill be happy if u would... plsss and thank you...:icon_confused:

Member Avatar for zhangj5
-5
126
Member Avatar for Deva.VG
Member Avatar for JamesCherrill
0
75
Member Avatar for Deva.VG
Member Avatar for VernonDozier
0
95
Member Avatar for beshoyatef

Here i draw the board for chess and put all pieces in there places on the board ... then i want when i pressed by mouse on the board give me the value of x , y . I tried with all things but i cann't solve this problem please …

Member Avatar for VernonDozier
0
78
Member Avatar for jrosh

[ATTACH]11999[/ATTACH] How can I add above type text into a JTextfield??????? I mean the faded texts as "username".. It should be ok to erase them when entering text into the field.. How can I do it?? thankx in advance.

Member Avatar for parry_kulk
0
901
Member Avatar for Xessa

Hello. I'm trying to convert Calendar to dd/MM/yyyy format. My problem was it couldn't convert to exactly what i wanted. I'm Turkish so when we write a date, we write the day first then month then year... My code is here [code] public static String toFormattedDateString(Calendar input){ String year = …

Member Avatar for Xessa
0
160
Member Avatar for kerkquin

Help me ,,... i nid to learn all about looping in java programming and what are the sample codes. plss. help me.. tnx..

Member Avatar for sbhavan
-3
106
Member Avatar for shauket
Member Avatar for sbhavan
-3
82
Member Avatar for joseph99

Can anyone please tell me how to turn on Java script,I have lost the ability to veiw photos or videos on my laptop Dell inspiron 630m. When I try to veiw anything it says that I need to download Flash player or I have to turn on Java script.

Member Avatar for saninfosys.com
0
100
Member Avatar for gunjannigam

I want to know that can I run a code which extend JPanel and uses JFrame without running the x11 server on ubuntu. I read something about Headless but its not working.

0
72
Member Avatar for anantha_krish

Hi I just tried to create the login form using java,jsp and servlets.The database am using here is mysql. The tool am using is eclipse galileo.The code is as follows: <index.jsp> [code=JSP]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; …

0
55
Member Avatar for gtey

I need to write an application that reads three intergers and prints their average, 2- write an application that reads two floating point numbers and prints their sum, difference, and product. I am doing programming projects in Java software solutions 5th edition for school. _______________________- [URL="http://ltseo.com.au/"]SEO[/URL]

Member Avatar for javaAddict
0
137
Member Avatar for shanks_86

heyy can ny 1 help me.....m wrking on jsp using ajax......i built a small application...as m new to ajax.....i built 2 field....FNAME & Lname and when my application used to do is..when you enter ur first name.....n press the tab button...the last name shld come from data base......but its nt …

Member Avatar for kvprajapati
0
114
Member Avatar for DARK_BYTE

Hello I wrote a class Employee and a tester class TestEmployee.The problem is that I get this exception after I enter the first employee's id.I thght if I give default values to the instance field the exception shouldn't have occured; can someone help me with this please: Employee class: [code] …

Member Avatar for DARK_BYTE
0
149
Member Avatar for sumit_raokhande

I did one J2ME SMS based Application.overview of my project.My j2me Application reside on Sales Person Handset.Sales person can send a sms to supplier to get a product.for e.g. Sales person send sms Store and related product means Suppose Store is "Nokia" and product is model number Nokia 5610 sales …

0
51
Member Avatar for arunpatil884

import javax.servlet.Filter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; Hi guys, please help me out. i m not able to import the above file what could be d reason. it says cannot resolve.

Member Avatar for masijade
0
25
Member Avatar for talablink

how do you add a key listener to a java GUI? can anyone pls show me how... or at least give an example..pls:) cause I want to add a key listener to my GUI calculator but I don't now how or where to put it and stuff...:-/ thanks...

Member Avatar for phamvantu_ctk30
0
159
Member Avatar for farzanehmif
Member Avatar for kahaj

For some reason, line 67 is saying, "variable ddOption may not have been initialized. However, on lines 80 & 93, that variable is used and works just fine. Any idea of what's wrong here? (I omitted some of the code in the middle section. [code] //ShapeCalculator.java import java.util.Scanner; public class …

Member Avatar for kahaj
0
117
Member Avatar for sweebez

Hello! I'm having a bit of confusion here regarding toStrings and Constructors. Namely, why would you ever need them? I have a project for my course, and in it, I use a method that checks for a creature's "energyLevel" to see if that creature is still "alive". This method returns …

Member Avatar for 0805638
0
636
Member Avatar for llemes4011

Hello everyone =) I'm a Java programmer who wants to do work with databases. MySQL seems to be a popular choice, but I don't know where to start. I messed around with Derby, but I didn't really understand what was going on. If anyone could point me in the direction …

Member Avatar for peter_budo
0
122
Member Avatar for abhi_marichi

How the JAVA compiler was developed????? What language and compiler they used to develop it.... and what factors made it platform independent.... If I want to write a language and a compiler and make it platform independent how can I do it....... Please help me out with answers........ Please......Please

Member Avatar for 0805638
-1
110
Member Avatar for 0805638

I use the IDE Netbeans and as a personal project I want to create an application in java similar to "Mac OSX" dock bar. I dont know how to run the coding using the GUI...all I have done so far are database structures and commandline programming. I will need to …

0
63
Member Avatar for valleymorning

Dear all, I have been told there is something wrong with the following code. Could someone please shed a light on this, I'd be greatly thankful to your help. VM ---------------------------------------------------- [code] Identify the problem in the following code: // Retry three times on failure to open file. int retryCount …

Member Avatar for masijade
-1
83
Member Avatar for carl9999

There's an error regarding the scanner and i'm honestly not sure how to make it work i'm using javac as a compiler, please help me solve this issue, ive been trying for hours [code]import java.util.*; public class testing { public static void main(String[] args) { String forename; String surname; String …

Member Avatar for carl9999
0
100
Member Avatar for whiteyoh

Hi all, im very new to java i would like to know how to add the following objects into an array [code] CD cd1 = new CD("Kaiser "," up the khazi ", 9.99); CD cd2 = new CD("Oasis "," morning glory ",3.99); CD cd3 = new CD("Bob Dylan "," Alreet …

Member Avatar for Ezzaral
1
491
Member Avatar for kat1

I am using java.io package in my j2me programe in order to use PrintWriter but package does not show PrintWriter option nor it shows BufferedReader option , why this happen ??i do not know.if any one knows the solution plz tell me.is it require any specific library???? plz help me …

Member Avatar for sincerelibran
0
110
Member Avatar for Teethous

[TEX]Hey everyone, I am having a problem with converting my character array. The program runs, but in the display box I get little squares instead of a string. The program should display the first char of the fist name, the first five of the second name and a random number …

Member Avatar for Teethous
0
180
Member Avatar for manish27896

Hi , I need one help. For one of my project requirement, I need to extract contents of RPM package and I have to write Java program for the same. Do anybody have any idea how to do that. Drop me a mail at [email]manish27896@gmail.com[/email] if anybody knows solution for …

Member Avatar for masijade
0
37
Member Avatar for guilh_22

Hi everybody, I need some help with my first Java program. My teacher don't teach really good ... I have a problem to solve in my script. At that time all are okay but all number must be rounding to 2 decimal :S That's all my Java program (He is …

Member Avatar for javaAddict
0
133

The End.