36,051 Topics

Member Avatar for
Member Avatar for javarook

so this program takes an input file and computes the class average and lists the students who are below average and the students with the highest score. Heres what im having trouble with: Having trouble getting the proper for loop to calculate sum, I've tried many different ways but its …

Member Avatar for Katana24
0
93
Member Avatar for mrynit

This program is a GUI shopping menu with text fileds next to item descriptions. My question is about the add method in ShippingCart class. It is called every time an action occurse in a text field, from a GUI class not shown here, where quantity requests are entered. So when …

Member Avatar for Ezzaral
0
214
Member Avatar for mgern26

Hi im writing a code that is supposed to display this * ** *** **** ***** **** *** ** * i have this so far for (int i=0;i<6;i++){ for (int j=0;j<i;j++){ which displays this * ** *** **** ***** how do i get the reverse side

Member Avatar for mgern26
0
84
Member Avatar for cool_jatish

Hi Buds......... I have an JApplet in which i want to display Urdu word in the JTextArea The JApplet is connected to MSAccess Thorugh DSNless JDBC-ODBC Bridge....... the parameter passed to database is in Punjabi language which will match from the database and select the equivalent URDU word The Urdu …

0
59
Member Avatar for vivekmrajesh

I want to find the link between the applications shown in task manager to that of the process tab in task manager. For this first I have to get the applications running in task manager.

0
46
Member Avatar for albertkao

How to use "c:if" to test for the boolean true? These does not work: [CODE]<c:if test="${model.value == 'true' }"> <c:if test="${model.value == "true" }"> <c:if test="${model.value == true }">[/CODE]

Member Avatar for albertkao
0
141
Member Avatar for anuplike

hi, i want to access my database through checkbox in jsp if i click on checkbox i should get database records

0
67
Member Avatar for sana.malik

Hi all, i am new to java, i am doing a grid computing project, anyone related to the fields please reply me. so that i can discuss my problems with u. regards

Member Avatar for rue64ja
0
79
Member Avatar for gunjannigam

Hi, I need a charting API which can plot static Line Graph for 300 million points. API should support zooming and panning of axes comfortably after plotting 300 million points. I tried with JFreechart but the result is not good for even 100 million points. Does anybody have any Idea …

Member Avatar for gunjannigam
0
109
Member Avatar for AngelPriya
Member Avatar for javaAddict
0
155
Member Avatar for vij123

i have a jsp page which have a some school names link. when i click to link of a school name, school name are appended to a link that will go to a second page. in this second page have same item which i will use same for all school. …

Member Avatar for vij123
0
1K
Member Avatar for merrycit

Hi, I dont understand why, but for some reason, the system does not recognize the buffered reader in the fileReverse method. Every time I try to invoke the readLine method on aBufferedReader, I get null as a result. Even my file reads: null null null null Can someone please help …

Member Avatar for tiny7415
0
137
Member Avatar for omkareswari
Member Avatar for Viruthagiri

Here is my code. I want to insert the date in 0000-00-00 format. But The error shows like this [COLOR="Red"][B]exception occured in Trainee Status java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date[/B][/COLOR]Here is my code [CODE]<%@ page import="INCLUDES.DBConnection"%> <%@ page import="java.sql.*"%> <%@ page import="java.io.*"%> <%@ page import="java.util.*"%> <jsp:useBean id="DB" …

Member Avatar for jwenting
0
304
Member Avatar for jdrake345

Hello, i need assistance with a mortgage calculator program. the requirements are : Program designed with GUI to Write the program in Java (with a graphical user interface) and have it calculate then display the mortgage payment amount from user input of the amount of the mortgage and the user's …

Member Avatar for jwenting
0
386
Member Avatar for barbn

[code]package inventory; // Product class import java.util.jar.Attributes.Name; // Creates Product Class, contains the inventory components public class Product { public static main(String[] args) {//begin main method Number number = new Number(001); Name name = new Name ("Highlighter"); Units units = new Units (6); Price price = new Price (2.50); //print …

Member Avatar for BestJewSinceJC
0
117
Member Avatar for Virux

Okay. I have been seriously struggling with this lately. I've searched and searched forever. The closest I found was this thread here: [url]http://72.5.124.102/thread.jspa?messageID=1662301[/url] What I am trying to acheive: I want to give my interface grayscale images for icons(png), and have a filter class that can color the grayscale images …

0
177
Member Avatar for pranav_jog

how to use system time in java & increment seconds then minutes and hour ?? can anybody will give me code??

Member Avatar for jwenting
0
62
Member Avatar for reynman

Hello all! I'm fairly new to programming (and have VERY little experience with JAVA) so please be gentle. :-) I'm looking at a piece of software created with Java and accessible via a https webpage, hosted locally. I login and there are several pictures on the site. I'm trying to …

Member Avatar for jwenting
0
102
Member Avatar for k2k

it is strange that my code was working before I modified some variable name/ type. i didn't make any major changes except for changing from double to int, and from double to String. the change was involved a bit sql code change as well though. i got (does anyone have …

Member Avatar for k2k
0
153
Member Avatar for David22

Hi guys. I have an observer/observable structure set up in my code that changes a bunch of TextField values with updated data, no big problem here. However, in my update(Observable obs, Object arg) method, I am trying to call another method to insert the new values into my database. I …

Member Avatar for ~s.o.s~
0
118
Member Avatar for cbtshare

hey guys , I would like to read info from a file e.g [inline] 10 999990 Gerry Boudens $1000.00 999991 Jimmy Chow $1500.00 [/inline] it is a credit card program, so the user would input their name and the program searches for it, if found it should show their credit …

Member Avatar for Ezzaral
0
156
Member Avatar for juliesyumyum

Hey! I need to program a simple arithmetic calculator. I've done the parser, infix to postfix, etc. Everything's working with no problems except that it only works with one-digit numbers. For example: 10+2 evaluates to 2 instead of 12. Here's the code of the parser: [CODE] package calculator; public class …

Member Avatar for javaAddict
0
208
Member Avatar for ubi_ct83

Hi all, i want to ask u guys what else i need to do to run this code? i have JDK. i have these file in my c:/program files/java/jdk1.6.0_16 c:/program files/java/jdk1.6.0_18 c:/program files/java/jre6. if i want to run this code,what do i need to do? [CODE] import java.awt.graphics; class HelloWorldApplet …

Member Avatar for jwenting
0
96
Member Avatar for mabrookes

Hi, Im very new to java (about a month) with a useless lecturer who has taught us nothing. Everything I have learnt so far as been on my own at home trying things. I did a question, but I wanted to try adding things to it to learn so started …

Member Avatar for mabrookes
0
108
Member Avatar for jayaj

hi all! pls solve my problem i am using jasperviewer with netbeans , everything is working fine, but when i exit the jasper report my entire project gets exited. Plz tell me the solution. Thanks.

0
41
Member Avatar for dirnthelord

I'm trying to display a report in my src/iReport/report1.jasper directory. but every time i try to display it i get java.lang.NullPointerException. I can't find where the problem is. Please someone just take a look and help me. I have imported all necessary libraries. im using Netbeans. [CODE] package Windows; import …

Member Avatar for dirnthelord
0
678
Member Avatar for Hakoo

Hello Everyone, Currently I m working on "Bug Tracking System" project using JSPs and MySQL. Actually this one is Intranet Base project. I want to add e-mail facility for each user. How can I do? Which Data Type is suitable for "File Attachment"?? And also I want help for Session. …

Member Avatar for stephen84s
0
96
Member Avatar for spiritsad

Hello How are you? I want to help in a software project? The project that you will be working on in this course is an interactive shopping system. You will be creating the administration part of the system that allows the shop staff to add new categories and products to …

Member Avatar for javaAddict
0
92
Member Avatar for boyz
Member Avatar for peterwalter

Please help me!1 this is what I have so far I am stuck in the plus and both times in the Polynomial class [CODE]public class PolynomialTerm { private int exponent = 0; private int coefficient = 0; public PolynomialTerm(int exp, int coeff) { int[] term = new int [2]; if …

Member Avatar for javaAddict
-1
100
Member Avatar for zenuser

Create an interface class named Dice with one method (public void roll()). Create a class to implement the dice class and call it PairOfDice. The class has two instance variables named dice1 and dice2. Create a method that would determine the value of the dice. how can i create this …

Member Avatar for peter_budo
-1
71
Member Avatar for blazinhieu

I want to double the score if the cards have the same suit or value and if two cards have the same both suit and value, the score get tripled. And the 2 of clubs is a 20 points. i already wrote the basics of the program which it adds …

Member Avatar for vchandra
0
303
Member Avatar for khess

It's true. [URL="http://www.oracle.com"]Oracle[/URL] is now, with its acquisition of Sun Microsystems, the world's largest purveyor of open source software. Does that surprise you? It did me too, until I started digging and realized that Oracle has a history of supporting free and open source software. Their support didn't start with …

Member Avatar for songjie
1
3K
Member Avatar for afruja
Member Avatar for vaishnavicse

[code]<% TreeSet Addval=new TreeSet(); TreeMap abbval=new TreeMap(); Vector newurl=new Vector(); for(int i=0;i<dds.size();i++) { double ids=Double.parseDouble(dds.elementAt(i).toString()); ids=ids+Math.random(); newurl.addElement(new Double(ids)); Addval.add(new Double(ids)); %>[/code]

Member Avatar for jwenting
-1
69
Member Avatar for sasi1240

hi friends can u provide me servlet code for displaying students profile based on roll number.

Member Avatar for jwenting
-1
40
Member Avatar for hongil14

This is a program im writing for class. Here is the exception im getting: Exception in thread "main" java.lang.NullPointerException at LinkedList_final.insert(LinkedList_final.java:72) at LinkedList_final.main(LinkedList_final.java:247) Basically, my program reads a text file and parse a string. And then, add the string to Linked list. Thank you for your time and any help …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for annietabio

package hw3; import java.math.*; public class Main { public static void main(String[] args) { int i, j=0; double t=0; //input int m=4; int n=5; hw3.Point[] p = new Point[m]; hw3.Point[] q = new Point[n]; p[0] = new Point(0,0); p[1] = new Point(0,1); p[2] = new Point(0,3); p[3] = new Point(0,5); …

Member Avatar for annietabio
0
154
Member Avatar for Bobon

Ok guys, firstly i'm sorry for the long code. Don't worry, it is only a small problem related to a small part of the code in the main class. I've highlighted the .area I have a problem here. The first piece of code is my main class. I call a …

Member Avatar for Bobon
0
3K
Member Avatar for Ecliptical210

Hey guys, I'm creating a Maze class along with a client class where it allows the user to input a direction (U/L/R/D), and then the validity of the move will be returned as well as the new position of the maze. So far, I've got this, but when I try …

Member Avatar for rue64ja
0
240
Member Avatar for jeffery12109

please help... here's the code [CODE]import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JPasswordField; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JOptionPane; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; public class Button extends JFrame{ private JButton reg; private JButton custom; public Button(){ super("BUTTON"); setLayout(new FlowLayout()); reg = new JButton("reg BUTTON"); add(reg); Icon …

Member Avatar for jeffery12109
0
305
Member Avatar for 9w43

I have 2 classes inside bluej, member class and trip class so when I make a member object with student ID, name and course, how can I make an ArrayList or HashSet on trip class which needs to store those students. If you have used bluej you know what I …

Member Avatar for 9w43
0
482
Member Avatar for kevinboey

Just to check with u guys I got a GUI Menu with few selections e.g. "Monkey" , "Elephant", "ViewList", "Exit" . When i click on "Monkey" a JOptionPane Sub-Menu will pop up and i could add or sell . but when i want to go back to the Gui Menu …

0
57
Member Avatar for fishguts

In the code below I am opening a .txt file to count the characters in it. I am assuming that the user does enter a .txt file, but how can I go in checking that the file is truly a .txt. I was thinking of using a java function to …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for Arthas

can somebody tell me the line: [B][U]public static[/U][/B] void main(String[] args) {} especially the highlighted ones in detail. why do we need to use static? public?

Member Avatar for BestJewSinceJC
0
82
Member Avatar for mytime19

Hello everyone, Can anybody tell me how can i pass parameters to a paint method ? I know we can paint on a panel but can anyone provide a good example? Something like this? I know its wrong but please correct me. [CODE] int x=10; int y=120; JPanel p = …

Member Avatar for BestJewSinceJC
0
91
Member Avatar for hockey87

I have to write a program that finds the smallest index of an array and am having a bit of trouble. Can anyone find anything wrong with this? [CODE]import java.util.Scanner; public class SmallestIndex { static final int LINESIZE = 10; static final int MAXSIZE = 50; static final int MINVALUE …

Member Avatar for hockey87
0
160
Member Avatar for jPro

Hi,I am trying to develop an app for android about how to make my app log in a website and retrieve messages,information, friends list..etc If you know how to do it on android or java I will appreciate it..:) Thank you in advance..:)

Member Avatar for Luckychap
0
20
Member Avatar for jonjonjon

Hi I am creating a program that needs to take 10 grades and give you the average, lowest, and highest grades. It needs to use arrays. Have I used arrays or used they correctly so far? Where do I need to put the grades in at? I have written part …

Member Avatar for vchandra
0
102

The End.