35,618 Topics

Member Avatar for
Member Avatar for gladius33

Hellooo guys could any one help me pllz i have a final exam tmw :( and the exam is Write a program that read 5 integers numbers and print the largest and smallest numbers By using IF statements :(

Member Avatar for ajst
0
186
Member Avatar for ksbp

I am using JSF with trinidad. I need a popup on click of a commandLink. But the pop up doesnt work..i,e it doesnt open in the browser. The popup blocker if off and I have also reset the browser settings. Also the same problem exists with <h:outputLink value="javascript:popupWindow('watchList.jsp')"> <tr:image source="#{msgs.editImg}" …

Member Avatar for pbl
0
89
Member Avatar for rajkumar_

How to get one answer from a set of answers may not be the best and print it?

Member Avatar for pbl
-3
38
Member Avatar for gladius33

Write a java program that read 2 integers numbers, Then determines and prints if the first is a multiple(double) of the second NOTE : Using if and else statements - and use the modulus ( the percentage mark ) to answer the question this is my answer !! pllz if …

Member Avatar for pbl
0
142
Member Avatar for coding101

Can anyone give me the steps to changing my default color scheme for Eclipse.. I mean changing the editor background, keywords etc. DONT post links if your trying to help, ive been on google for the last hour its useless. Thanks if you can help

Member Avatar for pbl
0
37
Member Avatar for kiddie

Hello, i am having with my mastermind game. I try to display black and white pegs but it does not work. Right now i gave up on black pegs and i am trying whitepegs. [CODE]import java.io.*; import java.io.*; public class Mastermind { int a = 0; int p = 0; …

Member Avatar for pbl
0
652
Member Avatar for Sourabh Kosta

Hi there, Every time i am making a program in Java(Advance). I found that it can many errors in it. For example I am Giving u a program written by me //a push button with all features [code] import java.awt.*; import javax.swing.*; import javax.swing.border.*; class Mybuttons1 extends Frame { //vars …

Member Avatar for seanbp
0
158
Member Avatar for lse123

Java Desktop DATABASE App SE (Like Phone Book App) I want extract data from a Database Table and, each output line has a radio button, to get edited/deleted the corresponding record by pressing corresponding button at end or results... well any sight/tip? Basically how dynamically to create radio buttons? What …

Member Avatar for ProgrammerAl
0
146
Member Avatar for xxunknown321

i'm trying to come up with an add method for a generic class i created. generally the object i create will be arrays, of type integer double or string. i dont know how to go about making the add method to have stuff added to the array... heres my code …

Member Avatar for ProgrammerAl
0
367
Member Avatar for Random_Integer

I know you can, [CODE]frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);[/CODE] but is there a way to get it to execute a method and then exit? example.. [CODE]frame.setDefaultCloseOperation(saveData, JFrame.EXIT_ON_CLOSE);[/CODE] just a guess? thanks all

Member Avatar for Random_Integer
0
121
Member Avatar for ge0rge007

Hello all! I am trying to create a server - client bundle that will let me send simple messages with ssl support. I am quite new at java and i can't figure out what my problem is. I am running the server and client programs at 2 computers at the …

Member Avatar for ge0rge007
1
167
Member Avatar for Akill10

Hi, I am pretty sure there is a more effective way of achieving this. Would love for some input from you guys. Basically, I have a class called GamePanel and it contains this: [CODE] SpaceShip spaceship = new SpaceShip("Galatar"); public void paintComponent(Graphics g) { Graphics2D g2d = (Graphics2D) g; g2d.drawImage(bgI,0,0,null); …

Member Avatar for Akill10
0
176
Member Avatar for endro

Hey all, I need some help on this program cause I'm stumped. Everytime I compile this program is gives me an error of either "cannot find symbol" or "int cannot be dereferenced". I'm still playing around with the code but I might have to put the other class in a …

Member Avatar for endro
0
136
Member Avatar for muraj

/*1st - What I want to do is have the user input 2 numbers. Program should determine which is lowest and highest, then spit it out. Then I’m trying to have the user input a 3rd number that is equal to or in between the lowest number and highest number. …

Member Avatar for Akill10
0
139
Member Avatar for khaled_jawaher

i am using jdom to read contents from xml file.i am trying to put the field read in a table created in java.the problem is that when i am getting the contents and printing it in the console every thing is going well.but when i add the contents to a …

0
82
Member Avatar for anilopo

A - an interface. B,C,D - implement A. in an other class, say X, i have an array of A, that will hold some B, C, D. i have a method that get (int i, A a) and put the a in the i place of the array. ->>>> how …

Member Avatar for anilopo
0
81
Member Avatar for Random_Integer

I'm doing a practice project to save golf statistics. It will display different data using tables. I wanted to run it through a jar file. But when I exit, obviously all of the data in my arrayList is gone. Any ways to save the arraylist? thanks a lot, -10100

Member Avatar for ajst
0
120
Member Avatar for sneha Butala

I want to create a project on Genetic Algorithm using java for the msc final year..so how i can start to create a project..

Member Avatar for masijade
0
280
Member Avatar for SailBlue5

I am working on a program that asks a user for a date and they can enter any string and I want to convert it to a date. For example I might have a user that enters Aug 24th 1998, or one that enters August 24 1998, or 8-24-98. I …

Member Avatar for masijade
0
84
Member Avatar for Phil++

Hello there, I'm working on a project and for this I'm using classes, in my main I'm using an array of objects. When I compile it, it works fine, but when I try to enter values, it displays this message: "Exception in thread "main" java.lang.NullPointerException at main.main(main.java:25)" Here is my …

Member Avatar for masijade
0
89
Member Avatar for prtzy

I am completely new to jsp. I have to design a website prototype for a project on doctor directory search using jsp. It uses database(ms access) to store data like doctor info and all. As i will not be hosting this website online , all the code (client side + …

0
55
Member Avatar for num90

Hi guys this time i enjoy my mini vacation but in this time i want to make a little software using "c" or "c++" for my project. so pls help me and any software u know so pls give me the whole code?

Member Avatar for ajst
-1
74
Member Avatar for queen11

can someone help me or give me codes on how to save images into database i'm a new user of java.

0
69
Member Avatar for jlovesfishiee

Hi, I am a beginner learning about java language and netbeans, and have a few questions I would like to ask. I want to create a new JSP page to allow a user to add new attributes/items, or to update the attributes in a database/table that I already have. How …

Member Avatar for jlovesfishiee
0
239
Member Avatar for bholas

i am stucked in my program that i need to get that that involves designing a database with a simple gui to add and remove items i also need it to connect to amazon please guys help me out for that at the earliest......

Member Avatar for ProgrammerAl
-2
67
Member Avatar for cempaka123

h[B]ow to create a java program using applets by calculate the groccary items please help me[/B]

Member Avatar for ProgrammerAl
0
87
Member Avatar for seanbp
Member Avatar for Hellomy

So I am using a Clip to play a wav file that is in the resource, it works perfectly when I am running the application through eclipse, but when I export it as a Jar/Runnable Jar, the sounds will not play. I know it is not a resource problem because …

0
44
Member Avatar for PennyBoki

the errors are commented in the code: help??? [code]import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.*; import java.lang.*; public class Kol2_1 extends Applet implements ActionListener { Button plus = new Button("+"); Button minus = new Button("-"); Button times = new Button("*"); Button div = new Button("/"); Button eq = new …

Member Avatar for cempaka123
-1
208
Member Avatar for smoke1914

I need help to write a program which calculates your grade for this class. All grades input should be taken from keyboard. the grade is calculated as follows: Grades = (homework-1 + homework-2 + homework-3 + homework-4 + homework-5)* .10 + midterm * .20 + final * .30

Member Avatar for ProgrammerAl
0
86

The End.