32,204 Topics

Member Avatar for
Member Avatar for q8girl24

hi... Problem # 4: Modify problem 4 in hw6 to record students score in each question and the question shown to the user. For example, Rectangle Red 2/5 means that the student was shown a red rectangle 5 times and he got them correct only two times (attempt count include …

Member Avatar for stultuske
-1
231
Member Avatar for q8girl24

Hi... This is my first post and I really need help in my hw because it will be submetted tommorow. Problem # 1: Write a program that fill two arrays rad[10] and len[10] by random generator (numbers between 0 and 100). rad[] array represents the (radius) of Cylinder, and array …

Member Avatar for JamesCherrill
-1
143
Member Avatar for mxwarning

Hello, I am having trouble with my inventory program. I made the first part last week and thought I did a good job. Come to find out I did not and the feedback I recieved from my instructor was not very helpful. Is there anyone that can help me fix …

Member Avatar for mxwarning
0
421
Member Avatar for Bensirpent07

Hi I am trying to change the <p id="returnsuccess"></p> to say anything at this point. I have some code it's about a form submission I don't think the PHP part is that important in solving this problem. But I want to know why the code I have doesn't work and …

Member Avatar for Bensirpent07
0
1K
Member Avatar for Slavi

Hey guys, Just got a quick question ... I am implementing a client GUI, and part of the requirements are that the client is able to start, stop and restart the server. This got me a bit confused since the client connects after the server is running. What I am …

Member Avatar for Slavi
0
311
Member Avatar for moaz.amin.37

if a gui have 2 text fields and there are 10 buttons(0-9) to input numbers in text fields then how it will choose that which field get input. this i problem in my gui i write 2 methods but not working my code is below public void actionPerformed(ActionEvent e){ if(e.getSource()==b1){ …

Member Avatar for moaz.amin.37
0
311
Member Avatar for haya_1

Hi, im having trouble to read from the keyboard the number of employees the user wants and in allowing the user to input up to 10 employees. package application; import dataStructures.*; import java.util.Scanner; /* this is the list of employees * */ private LinkedList<String> employeeList; /* constructor */ public TrainingCourses(){ …

Member Avatar for haya_1
0
129
Member Avatar for wbbb54

Write a program using user-defined methods. Write the following methods: 1. getPrice() which asks the user to input the original price of an item. 2. getDiscount() which asks the user to input the discount rate. The method should return the decimal version of the rate. For example, if the user …

Member Avatar for samson.dadson.3_1
0
291
Member Avatar for jordan.nunnery.75

create a program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as the total point value per grade available

Member Avatar for samson.dadson.3_1
0
122
Member Avatar for syedmuaz.hassan.3

A well-known supermarket employs you to develop an inventory control system. You decided implement it by Object Oriented Programming (Java) because of programs written by Java is easy to enhance and maintenance. The system will control the inventory of 3 shops (Shop 1, Shop 2, and Shop 3). The system …

Member Avatar for samson.dadson.3_1
-3
191
Member Avatar for silvercats

why do most people use brackets in this way when it comes to Java. Pospular IDEs also use this method by default class Test{ public void test(){ } } than this way class Test { public void test() { } } The second method is obviously easier to read.

Member Avatar for samson.dadson.3_1
0
506
Member Avatar for jordan.nunnery.75

I would like to create a class for finding the voltages of 1, 2 or even 4 batteries. The Class can be called BatteryVoltage with a default voltage value of 1.5 (AA Battery) Must allow the user to find the total voltage of batteries when installed as a single,double, or …

Member Avatar for samson.dadson.3_1
-1
150
Member Avatar for juhitha

when i tried executing my java project i got the following errors Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: TRANSLUCENT translucency is not supported. import java.awt.Color; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import javax.swing.AbstractAction; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; …

Member Avatar for JamesCherrill
0
524
Member Avatar for Inimitable

i using abstract method , and always prompt out wiv " not abstract and does not override abstract method " tis kind of error ublic abstract class Person { protected Name name; protected String address; protected String hp; protected String eadd; private static int counter; Person(Name name,String address,String hp,String eadd){ …

Member Avatar for Inimitable
0
242
Member Avatar for Slavi

Hello everyone, I am getting NPE, and surprisingly I can't figure out why ... I am calling a method from a client using java rmi. The method on the server side is as follows : public List<String> getPrinters() throws RemoteException { List<String> listPrinters= new ArrayList<String>(); for(int i=0; i<printers.size();i++){ listPrinters.add(printers.get(i).getName()); } …

Member Avatar for Slavi
0
144
Member Avatar for DeepakBrian

I want to set font to selected text of JTextARea how to do this. Reply me Thank you

Member Avatar for stultuske
0
65
Member Avatar for moaz.amin.37

i read adapter classes everything is write but i am confuse about Listener Interfaces and Adapter classes concept priblem is that when java create adapter classes it implements corresponding interface and privide defination with empty bodies of all methods that are present in interface this is declaration public class WindowAdapter …

Member Avatar for moaz.amin.37
0
502
Member Avatar for LittleBiscuitz

Hi i am creating a lottery program and i have managed to get it so the user enters 6 numbers into the program then it will generate random numbers the problem is that the numbers the user enteres can be duplicate i need help trying to not make them duplicates.here …

Member Avatar for zolymo
0
1K
Member Avatar for mxwarning

Hello, I am supposed to modify my last inventory program. Here is the instructions. Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of …

Member Avatar for zolymo
0
933
Member Avatar for Slavi

Hey everyone, I am facing an implementaton issue here ... hopefully someone can give me a hand .. So I am implementing a client-server communication, where the server has to act as a print server. In other words, the client simulates to be next to a printer and can send …

Member Avatar for Slavi
0
189
Member Avatar for kayleigh0411

I am trying to make a program that will tell how much a ticket costs and what the admission status is for a movie based on the age of the person. For ages 1-4 and 55 and up, it is $0.00 and "Free". For ages 5-12 it is $4.25 and …

Member Avatar for stultuske
0
157
Member Avatar for MasterHacker110

I remember reading in Java's EULA that you acknoledge not to use it for certain things (real time applications). I did a bit of research on this matter and came to the conclusion that it is due to Java's garbage collector that makes Java slower and thus unfit / or …

Member Avatar for MasterHacker110
0
225
Member Avatar for maryam_5

hello i am a computer science student in my final year....please can someone help me wit the source code of an exper system on medical diagonosis in java. tank you

Member Avatar for jwenting
-3
88
Member Avatar for haider885

I don't know what I am missing. Help me. import javax.swing.*; import java.util.Scanner; public class Operator { public static void main(String args[]) { String num1,num2,op; int ans; Scanner cin = new Scanner(System.in); num1 = JOptionPane.showInputDialog("Enter First Number"); op = JOptionPane.showInputDialog("Enter Operator"); num2 = JOptionPane.showInputDialog("Enter Second Number"); char c = (char) …

Member Avatar for zolymo
0
157
Member Avatar for Slavi

Hey guys, I can't understand why am I not getting anything from the server, it is supposed to return "Hello" to the client ... I have this code implemented for a game I made during the summer and it works perfectly(of course this is just part of the code), but …

Member Avatar for Slavi
0
188
Member Avatar for Stuart_3

Hello, I am a new developer and am making my first app which will be open source after I finish it. How do you make a notification apply to all dynamically created objects rather than the last one in a linear layout? I have created 2 methods, one called CreateDialog(); …

0
158
Member Avatar for Tanushree_1

i'm making a hospital management project using java and there is a small error "symbol not found ". plzz help

Member Avatar for Slavi
0
91
Member Avatar for Sumith Asanka

Hi Guys i have a formValidation Java Script on the form to validate username and password text boxes to check whether they are empty,and i am calling them on the Onclient Click even ton the button, But even If i enter some data into those text boxes the error message …

Member Avatar for AndrisP
0
341
Member Avatar for 2384443

Hi everyone, i need your help.. I want to draw a circle,square and rectangle on Jframe on a click of a button.. This program was asked in my test paper, i couldn't get it right though bt i wanna know what my mistake is.. Plz help me.. import javax.swing.*; import …

Member Avatar for JamesCherrill
0
342
Member Avatar for moaz.amin.37

i write a code in java of GUI calculator. i handle its addition event only but it is not working i don't know why its code is here import java.awt.*; import javax.swing.*; import java.awt.event.*; class Calculator extends JFrame implements ActionListener{ JTextField jtext; JPanel p; JLabel lab; JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b0,bPlus,bMinus,bMul,bPoint,bClear,bEqual; public Calculator(){ …

Member Avatar for JamesCherrill
0
2K

The End.