35,618 Topics

Member Avatar for
Member Avatar for fpg5

Got a test coming up and I need some help understanding arrays....Below is the code I wrote to match the question which follows underneath that... [CODE]class Student{ String id;//this student's ID int midScore;//this student's midterm score int finalScore;//this student's final score public Student(String id){ this.id = id; } public void …

Member Avatar for moutanna
0
109
Member Avatar for SasseMan

Hi! I'm having some problems with gridbaglayout trying to get functionality that maybe isn't even there. The problem is the following I have 3 Jpanels with differend contents. I want panel 1 to be displayed to the left of the screen filling the y-axis, panel 2 in the middle filling …

Member Avatar for SasseMan
0
7K
Member Avatar for m1dnight

Hi guys! I found a lot of my answers on this webbie, so I registered myself. I'm creating a java based quiz program. Now i'm running into a lot of problems trying to get stuff working. The problem i'm having now is the following: I have a class Question, and …

Member Avatar for JamesCherrill
0
96
Member Avatar for ravi-kr

Hi, I am trying to run some simple updates using java in Oracle(10g). I have a simple java program to do it. Running the code using Eclipse IDE. The strange thing about it is that the connection is fine. If I run a [B]select[/B] query, it works fine. However if …

Member Avatar for ravi-kr
0
127
Member Avatar for albert1901

Hello everyone, I am developing an application which makes use of abstract classes. I am trying to create a switch statement, which I have placed in the abstract class as all the subclasses can use this. I would like to refer back to this statement in a scanner which is …

Member Avatar for ~s.o.s~
0
81
Member Avatar for student.09

Hi, I have just written a java program, but every time i compile it, I'm getting some errors that I am having trouble solving. This program is an object-oriented program. So if anyone could please help me, let me know and I will inbox you my work! thank you! :)

Member Avatar for moutanna
0
73
Member Avatar for fozzywozzy

Hi, What's the best way to round doubles as in currency? I also have this error that says: internal error, cannot instantiate paycheck(java.lang.string, double, double) at paycheck to (). If you need to see the codes, I can post them. Any help at all would be greatly appreciated! Thanks!

Member Avatar for fozzywozzy
0
92
Member Avatar for 05026652

Hey guys, Im having some problems with an exercise that I need to complete with the use of inheritance - In the exercise I am concerned with two Classes (Cupboard and Safe). The cupboard can be opened and closed and tested to see if it is open or not. A …

Member Avatar for JamesCherrill
0
170
Member Avatar for ceyesuma

hello Is this String from my properties sheet able to become a prepared Statement. is the syntax compatable? [code][b]if the string from properties is i=0 for the array [/b] private boolean createTables(Connection conn) { for (int i = 0; i < schoolofdbTables.length; i++) { boolean bCreatedTables = false; PreparedStatement ps …

Member Avatar for ceyesuma
0
118
Member Avatar for craigaw

Hi, in a "contact us" page named contact.htm that has some input textboxes, a submit button, and a reset button. When I fill out the fields and click Submit, it posts to an asp page that sends an email. What I want to do is to clear out the input …

Member Avatar for craigaw
0
94
Member Avatar for JellyTurf
0
64
Member Avatar for supersuper

Hi there, I'm working on a small task to practice my (non-existing) java skills. I'm trying to write a program that reads a text file and replaces every character with a .wav file containing a musical note. A friend gave me some help, and with his help I made class …

Member Avatar for supersuper
0
105
Member Avatar for somilbansal

I am tryin to embed youtube in my webpage. I am a starter so i might be doing something wrong here. can any please help me on this. I have included the swobject. [code=html]<html> <script type="text/javascript" src="swfobject.js"></script> <div id="ytapiplayer"> You need Flash player 8+ and JavaScript enabled to view this …

Member Avatar for peter_budo
0
88
Member Avatar for Ghada Ibrahim

Hello .. i need ur help i have this problem .. i have this in a jsp page : [code]<jsp:useBean id="rdf" class="test_rdfa.NewClass"> </jsp:useBean> String id=(String)session.getAttribute("id"); String url= request.getParameter("wburl"); rdf.readGrddl(url,id); [/code] and this is the NewClass.java: [code] import com.hp.hpl.jena.grddl.GRDDLReader; import com.hp.hpl.jena.rdf.model.*; import java.io.*; public class NewClass { Model model = null; …

0
63
Member Avatar for bahnini

hello there u said if any body need help u can help them so plz i need ur help with this i did a program in java gui (temperature converter) and i just need the program to print the result in a text file so plz plz plz help me …

Member Avatar for bahnini
0
128
Member Avatar for tones1986

Hey all - I have created an ArrayList as follows: [code]ArrayList<Object> arList = new ArrayList<Object>();[/code] The arraylist contains the following - every time it will have the same data ... either filled or considered ""; String - transaction type String - name String - ssn String - address int - …

Member Avatar for JamesCherrill
0
354
Member Avatar for flyingcurry

Beginner in Java. I am trying to find the highest value and lowest value of an array. The highest value works perfectly fine, while the lowest value keeps on giving me 0, even though 0 is not part of the array. Below is the code. Thanks. [CODE] mxm = n …

Member Avatar for moutanna
0
97
Member Avatar for flyingcurry

Hi, I'm new to Java. Bumped into an error when doing a program. The code below will basically explain everything. This error [CODE]java.lang.ArrayIndexOutOfBoundsException: 15 at randomintegers.main(randomintegers.java:43)[/CODE]keeps on showing up and the program will not execute further. If anyone can help me soon it would be great! Here is my program …

Member Avatar for flyingcurry
0
97
Member Avatar for gymangel812

i'm having a few problem with my phone book program: 1. If the any of the buttons have empty fields, I need to display an error message. How would I do that? Some sort of try/catch statement or if/else statement? 2. I'm a bit clueless as how I would go …

Member Avatar for moutanna
0
129
Member Avatar for softdev

Hi, are there any alternatives for error handling in Java other than exceptions? i'm just reading on error handling. like in c++, i'm meeting such things as retturn codes, deferred error handling.i haven't gone into much details on these. but are they available in java?

Member Avatar for BestJewSinceJC
0
66
Member Avatar for gjames

How do I load an older version of 'xerces-j 1.4.3' and 'xerces-j-docs' into eclipse so I can use the api's? I've looked at the Eclipse doc, and I'm not finding a direct reference to this which makes me think I'm not grasping some important concepts conerning plugins, and features. Below …

Member Avatar for gjames
0
73
Member Avatar for Blax

Hello ive been working on this real number program for a couple of days and i still cant get it working it always prints out the same two numbers 1 2 1 2. Please help. [CODE] public class perfectnums { public static void main(String[] args) { int n = 1; …

Member Avatar for Blax
0
164
Member Avatar for suncica2222

I have button and <input type="button" onclick="test();" value="dugme"/> [B]wont call test() [/B] with alert(bla bla) directly works,but wont call my functions why???????????????? here's the complete code [CODE]<html> <head> <title>moje vezbanje</title> </head> <body onload="alert('sdfsfd')"> <script type="text/javascript"> //alert("jhgfgh"); function klasa() { var nazivLinka = document.getElementById("prvo").value; var url = document.getElementById("drugo").value; //alert(nazivLinka); //druga.createNode(input type="text" …

Member Avatar for d5e5
0
169
Member Avatar for p_jain

i want to connect jsp with mysql , plz send me the connectivity code or any connectivity program...............

Member Avatar for jwenting
0
99
Member Avatar for aripaka

hi, can anybody please help me understand the difference between java runtime and java virtual machine?

Member Avatar for thebody
0
199
Member Avatar for sukruth

Hi Everyone, Can u please guide me how do i replace the string String a="FirstName & LAstName [abc]"; by String b="FirstName, LAstName [abc]"; String Result="<aaaa> FirstName & LAstName [abc] </bbb>" String Result=Result.replaceAll(a,b); The above two lines are not working coz of square brackets in the String. Can u please provide …

Member Avatar for Ezzaral
0
75
Member Avatar for ku95

[B]Connect4View[/B] [CODE]import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JButton; public class Connect4View extends JFrame { DrawPanel canvas; Connect4Model model; ControlPanel myControlPanel, JRadioButton; public static void main(String[] args) { Connect4View w = new Connect4View(); w.setVisible(true); } public Connect4View() { setTitle("Connect4 solution"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,220); …

Member Avatar for quuba
0
106
Member Avatar for AnarChYm

Hi, I am a Maltese student currently working on my dissertation which focuses on J2ME Wireless SOAP protocol. Since in my country i.e. Malta we don’t have professional mobile developers I had to turn myself to online questionnaires for my research methodology those of you who has done a thesis …

Member Avatar for AnarChYm
0
120
Member Avatar for mgern26

ok so i need a code that can read a list of random numbers from a note pad and then sort them, i have it set that it reads the notepad that it is supposed to but how do i make it sort // this is what the notepad file …

Member Avatar for javaAddict
0
100
Member Avatar for beforetheyknew

Hi guys, just looking for a bit of help. I've fallen victim to a particularly bad teacher with concurrency and now i have an exam in 2 weeks. I've been relying on online tutorials but the vast majority of it still escapes me. Can i ask what mutex is ? …

Member Avatar for beforetheyknew
0
83

The End.