36,051 Topics
![]() | |
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 … | |
// 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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
I have a mm-a940 samsung is there any thing I can do to tweak this phone for better | |
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: … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
i am trying to learn j2ee .can anbody help from where i have to downlaod and waht i have to download thanks | |
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 … | |
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 … | |
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 | |
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 … | |
(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)}; … | |
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 … | |
[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 … | |
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 | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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!!!! | |
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. | |
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 … | |
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 … | |
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, … | |
Hi, I haven't any idea about servlet chaining. anyone send small sample for servlet chaining. Thank you | |
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 … | |
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. | |
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 … | |
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. … | |
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. | |
I like to use sql procedure to java code how i connect it to my project please send code to be more obvious | |
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 | |
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 :) | |
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. … | |
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. … | |
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... | |
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 … | |
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 … | |
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, … ![]() | |
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 … |
The End.