36,051 Topics

Member Avatar for
Member Avatar for LEGACYONE_2006

I have the following program working. It takes an array of numbers and returns the index value of each number. However, what I want it to do is to get an integer from input from a user and return the index value of just that integer. If the integer is …

Member Avatar for SeekAnswers
0
87
Member Avatar for muthumari

// My JSP coding. This is stored in the following path http://localhost:8080/vennila/test.jsp <HTML> <HEAD><TITLE>DataBase Search</TITLE></HEAD> <BODY> <%@ page language="Java" import="java.sql.*" %> <jsp:useBean id="db" scope="application" class="SQLBean.DbBean"/> <jsp:setProperty name="db" property="*" /> <%! ResultSet rs = null ; ResultSetMetaData rsmd = null ; int numColumns ; int i; %> <center> <h2> Results from …

0
108
Member Avatar for Coach_Nate

Sorry for the crummy subject, but I have a serious problem here. I'm trying to check myself as I code and I keep having issues with seeing "old" code. I'm putting together an applet for a class assignment, and I have been periodically trying to view my code (what it's …

Member Avatar for jwenting
0
107
Member Avatar for sidereal

Please people help me with some ideas... everything is necessary now..... here is my code: this thing is supposed to read from a file random numbers and generate the so called Process control block with burst time and the number of the process: import java.util.Scanner; import java.io.*; public class PassProcess …

0
64
Member Avatar for sidereal

Hey.. I am working on this project, where you have to simulate cpu scheduling for 10 processes. I have to use only 2 algorithms like FCFS and Priority. The basic code would be randomly generating 2 files: "burst_time.txt" and "priority.txt" and then reading the random times. I have to save …

0
83
Member Avatar for crws416

HI all, I'm having trouble putting a GUI on an existing java server program i have. I have added a frame to the code but all it does so far is pop up, there is no interaction.. I've tried moving all of my functions accross but to no avail.. i …

Member Avatar for jwenting
0
111
Member Avatar for uwontlose

I have a mm-a940 samsung is there any thing I can do to tweak this phone for better

Member Avatar for uwontlose
0
89
Member Avatar for itstudent123

please can you help me in this BankAccount code i do it but the teacher remove some my code and ask me when i see complete i complete but i when i do it i have some error can you help me i will post my code the client code: …

Member Avatar for Phaelax
0
133
Member Avatar for aarya

i am trying to connect java program to mysql databse. bascically i am aphp programmer. now i want to lear j2ee so i was trying to connect to mysql database.i am getting the error as not able to load the drive thi sis my code import java.sql.*; public class tc …

Member Avatar for jwenting
0
115
Member Avatar for sarahjane

Hi, supposed to implement a game where the queen(counter) is supposed to travel over all 64 squares in 16 moves and it must highlight or mark squares allready passed over. Been at this for last two nights and begining to lose patience any help would be great, thanks. Code is …

Member Avatar for Phaelax
0
168
Member Avatar for ZenaNqld

Ok heres the problem ( and no laughing at my code!! ) I need it to change the value of the strokedistance to the holedistance when the strokedistance makes the holedistance less than zero. Any suggestions, ideas, tips, and it doesnt have to be specific to my problem maybe just …

Member Avatar for ZenaNqld
0
148
Member Avatar for Lunaticrr

Me again. Another stump. This time I have to recieve two inputs from the user and perform a few math operations using both those two inputs. Meaning I have [B]String a, b;[/B] for my two user inputs. Is it possible to get all 4 of my math operations, addition, aubtraction, …

Member Avatar for psodhi
0
168
Member Avatar for cazaletm

Hello! Can anyone tell me how to make use of the End of Line constant (TT_EOL) when reading data from a file into a Vector? I understand that TT_EOL returns and int, while vectors only hold class types (Double in my case), so how can you compare the two? I …

0
71
Member Avatar for aarya

i am trying to learn j2ee .can anbody help from where i have to downlaod and waht i have to download thanks

0
45
Member Avatar for Shaun1987

Hi, basically I have an array of JButtons 0-25 labeled A through to Z. When each of the buttons are clicked I need to call a function passing the letter value. I thought that I could do this like this: [I] if (buttonObj == letterButton[0]) { functionName(); }[/I] But I …

Member Avatar for Shaun1987
0
185
Member Avatar for ben1977

How do I go about defining the average and total variables in the following script? Assistance is appreciated... Ben import javax.swing.JOptionPane; class minmax { /** Main Method */ public static void main(String[] args) { final double TOTAL_NUMBERS = 5; //Convert string to double double Average = Double.parseDouble(averageString); //Convert string to …

Member Avatar for fdrage
0
101
Member Avatar for static

Hi, i'm now making a project of sending ,receiving ..with SMS.I think only sending, receivng,includeing error handlin doesn't make my project complete. What do i need to improve my proj. plz ignore my mistakes. :cheesy: Thank You

Member Avatar for veerareddy
0
84
Member Avatar for daxxin2002

how do one convert a truth table to boolean equation,I can convert the other way round like below; //Suppose Z = (A.B + C)' public class Boolean_to_truth { public static void main(..... { int a,b,c,z; System.out.println("A B C Z"); for(a = 0;a<=1;a++) for(b = 0;b<=1;b++) for(c = 0;c<=1;c++) } z …

Member Avatar for alpha_foobar
0
104
Member Avatar for sqlchopper

(code) function recalcnet(txt) { switch (txt) { case '0' : recalcnet1(); break;}} function recalcnet1() { var prevbal = 0; var demand = 0; var whatif = 0; var sched = 0; prevbal = document.getElementById('BegInvTextbox').value; demand = document.getElementById('dm1TextBox').value; whatif = document.getElementById('ifm1TextBox').value; sched = document.getElementById('fmm1TextBox').value; document.getElementById('nm1TextBox').value(prevbal - demand + whatif + sched)}; …

Member Avatar for server_crash
0
96
Member Avatar for k_satish0101

my application is to reserv a resourse by entering start time and end time before reserving i need to check the availability in the database My problem is (for eg)i 'm requesting reserving by entering startime as 10.00 and end time as 14.00 on a particular day if they had …

0
59
Member Avatar for Eng_Girl

[B]Hello,all I need an urgent help for my senior project I have to do a java program that acts as a SMS server for my SAMBA GSM modem , but its accessed by USB . How to initialize the USB library in java and what can I do to write …

Member Avatar for Phaelax
0
104
Member Avatar for sandesh_daddi

HI FRIENDS I AM DOING MY mca IN PUNE I HAV PROJECT IN JAV FOR 50 MARKS I HAVE NO IDEA ABOUT WHICH PROGRAMS :?: CAN I WILL DO IN JAVA PLZ HELP ME TELL ME SOME PROJECT TITLES

Member Avatar for DMR
0
345
Member Avatar for toara

Any hint on how to start writing the following program: " a golf game that allows the user to play one hole, a 280 metre par 5. The game proceeds with the player choosing a club for each shot and then the program generates the distance hit for each shot …

Member Avatar for Salem
0
99
Member Avatar for Dark_Omen

Hi, i was writing a program to make permutations of strings, but I ran into a snag and can't figure out what's wrong. It prints out the permutated strings, but some of them are duplicates. I attached the source Thanks for the help.

Member Avatar for Dark_Omen
0
132
Member Avatar for Efliction

Hey Guys and Gals I just seeing if anyone can help me out? I discovered how to convert a Gui textfeild into an String but cant seem to find the on the api to do it for an int? For example int num = tfNum*****; Just cant find a appropiate …

Member Avatar for tomkeys2006
0
130
Member Avatar for ben1977

I'm trying to write a Java application that will read five double values and find the total, average, minimum and maximum of the values entered. For some reasons after trying to find what wrong with it it's still not building. I'd appreciate someone's expertise on the matter. import javax.swing.JOptionPane; class …

Member Avatar for ben1977
0
168
Member Avatar for dwn

I got a new laptop today and was trying to put some of my old info on the new comp. I went to yahoo sitebuilder to download the file to manage my web site. It downloaded ok , but when i go to the icon, it says " unable to …

Member Avatar for freesoft_2000
0
77
Member Avatar for Tigerdude

I'm working on yet another graph problem. This time, we have to sort it topologically, using a DFS Based algorithm. I've been able to write most of it down, but there is one for loop that confuses me. Our instructor did not make it very clear as to how it …

Member Avatar for Tigerdude
0
261
Member Avatar for Mikecool509

Hello. I have been trying to trouble shoot my brother's computer for some time now. One day, the javascript on his computer disabled or deleted itself. He can't open new web page links, or anything with javascript, his search is disabled because the javascript is not working, and programs like …

Member Avatar for Mikecool509
0
195
Member Avatar for c_est_la_vie

already done the TIO one as follows: do { dStr=JOptionPane.showInputDialog("Please enter "+name+"'s demand:"); d=console.nextInt(); if (d<0) System.out.println("Demand can't be negative."); }while(d<0); but don't know how to transfer it into GUI style? anyone can help me? Thx!!!!

Member Avatar for Dark_Omen
0
101
Member Avatar for fdrage

Hi, How do you go about in creating a direcory folder? I've been playing around with class [B]File [/B]which has the method [B]mkDir()[/B] (no arguments and returns type boolean), which i thought would be the answer to making a directory but apparently not, or perhaps i just dont understand it.

Member Avatar for jwenting
0
121
Member Avatar for lanario

I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous …

0
87
Member Avatar for wsafdbv

For a major simulation project in our lab, we are receiving a series of integers from the lab equipment (note: we usually have in excess of 100 numbers per simulation). These numbers represent some actions of an ant colony. We need to return the number of elements in the largest …

Member Avatar for Phaelax
0
133
Member Avatar for tripnip

I'm completely new to Java, and programming in general, and I'm trying to do something that I thought would be simple but I'm stumped. I probably did something wrong thats obvious to other people but not to me. I'm trying to display a GPA after you put in the grades, …

Member Avatar for tripnip
0
207
Member Avatar for muthumari

Hi, I haven't any idea about servlet chaining. anyone send small sample for servlet chaining. Thank you

0
91
Member Avatar for Lunaticrr

This is my code: import javax.swing.*; public class Two { public static void main(String args[]) { JOptionPane.showMessageDialog(null, "Computers, computers everywhere\n As far as I can see\n I really , really like these things,\n Oh joy, oh joy form me!" JOptionPane.WARNING_MESSAGE); } } I am trying to make the text appear …

Member Avatar for Lunaticrr
0
124
Member Avatar for Reham Ejaz

Hello to all! I want to learn JSP. I have basic level of knowledge about java and also about javascript. Dont know any thing about javabeans. I need to know of a good site where i can start from. Thanx in advance.

0
57
Member Avatar for tomkeys2006

Hi Guys, wonder if any one can help?? I have been asigned some home work to make a CaesarCipher class, listed below, where by there is a test class below which would need to be passed to it. I have figured out the first bit but cant debugg and get …

Member Avatar for server_crash
0
114
Member Avatar for Lunaticrr

I have downloaded the J2SESDK and installed it. It is the bundle pack that comes with NetBeans. However when I run the installation only the directories for the 2 are created and there is nothing in there. I haven't a clue if thats supposed to happen but I'm guessing no. …

Member Avatar for Lunaticrr
0
132
Member Avatar for Dani

When using a third party ad server, do you use the IFRAME or JavaScript method? Usually the JS method is more robust and offers more features, but it can slow down page rendering times. Currently struggling with this battle right now.

Member Avatar for Dani
0
133
Member Avatar for soso30

I like to use sql procedure to java code how i connect it to my project please send code to be more obvious

Member Avatar for aniseed
0
69
Member Avatar for tdoggrme

I wanted to know if anyone know how to get the length of digits, like if the user enters 12345 the computer will return 5 because the length is 5

Member Avatar for hooknc
0
734
Member Avatar for jigvesh

Well i am pretty confused between the three,,,,i tried going through the java forums [url]http://forum.java.sun.com/thread.jspa?threadID=583383&messageID=2981007[/url] and [url]http://forum.java.sun.com/thread.jspa?threadID=671804&messageID=3926799[/url] but just couldnt make out anything.......Could someone please explain it in a bit simpler terms.....Thanks a tonne :)

Member Avatar for server_crash
0
289
Member Avatar for buggytoast

Hey guys! :D My program implements the vector class however it only shows I know how to use the Vector Class, and not how to develop a code for a linked list :( My teacher says I can just do a copy paste job, which is precisely what I did. …

Member Avatar for buggytoast
0
148
Member Avatar for dgrblr

I have tried every avenue I can think of, but this forum seems to be the best to supply help. I am creating a class using NetBeans. I have created the following code, but get an error message for the line "public static Connection getConnection (String strFileName, "","") throws Exception. …

Member Avatar for dgrblr
0
932
Member Avatar for renick_j_v

i am doing a chat client server program.. i have a doubt in retreiving data from a applets textfield and passing into the stream. send some code if possible......... renick...

Member Avatar for Phaelax
0
121
Member Avatar for yashu

hi friends... i am new jsp's..i have done a web application.. i want to excecute the web application on the click of the mouse on a .exe file.. i mean.. that .exe should have the sever configuration also.. so that it can run on any comp which doesn't have a …

Member Avatar for aniseed
0
131
Member Avatar for gagirl14

I don't know why I'm getting this return statement :sad: Please help. Error is in green public class Card { private int rank; private int suit; public Card() { suit = (int)Math.floor(Math.random() * (4-1) + 0.5) +4; rank = (int)Math.floor(Math.random() * (14-2) + 0.5) +14; } public Card(int r, int …

Member Avatar for malaya_champ
0
113
Member Avatar for lev_arris

Hi guys, I'm currently making a GUI which displays a graph. At the moment it reads coordinates within an array in the code: public int datax[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public int datay[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, …

Member Avatar for iamthwee
0
146
Member Avatar for Phaelax

I want to add theme support to my program so that users can just download jar files containing a LnF and just drop it into an extension directory or whereever. I'll just scan that directory for jar files to see which are present. Is there a way search for a …

0
71

The End.