36,051 Topics
![]() | |
[ATTACH]15386[/ATTACH] Can somebody pls help. i have two frames. Frame1 contains table and frame2 for the alert setting. Frame has 2 columns. The delta and the alert. The situation is when i set the alert setting to a given value and the delta met it. the alert column (each cell) … | |
I have been trying to read a file, put it in an array and then find the average of the integers in the array. However I am unsuccessful with putting an integer in each slot of an array. When I print qa1[0] I get a long chain of 30 but … | |
Heya. I require assistance regarding one of my Java programs. As the program is rather large I'm unable to post the source. The problem, My program will not start once I try to execute the Jar file associated with the program. Platform, Netbeans IDE 6.8 Description, I've written this program, … | |
AudioTrack sound = audio.createAudioTrack("ringout.wav", false); is giving me the output "WARNING: Unable to locate: ringout.wav" The sound file is in the same project folder that i am using..Anyone knows what i might be doing wrong in here? Thanks a lot. | |
When i was trying to run a program from the IDE, a window pops up which has anagrams as a title and requests me to enter something under "Your Guess" slot? What is happening? | |
I hope my title says it all. I can't show you the jpg error, because the size is too large to upload (3 MB). The mix of Firefox, Windows 7, Zonealarm. I am researching Firefox in a Firefox forum. All I know is the Combo of the same Firefox, no … | |
Hi Daniweb team, I am developing the sample servlet program.This is my sample program. Servlet Code: [code] package org; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse rsp)throws ServletException,IOException{ PrintWriter out=rsp.getWriter(); String type=req.getParameter("type"); if(type==null){ out.print("success"); } else{ out.println("Not a Null value"); } } … | |
Hello, When random generates an output, it cannot show duplicate strings. So for example the output I am getting (randomly) is, "Freddy, Freddy, Jane" when it should be "Freddy, Jane". I have to hardore so I cannot use Sets or ArrayList, Contains or for anything like that. Also no Stringbuilder. … | |
fellow developers...i am new to web development...I am developing a simple web application using Oracle for Weblogic Workshop with Weblogic 10Gr3 server. However my deployment server is weblogic 7.1. When i deploy and run the app, i get the following error Parsing of JSP File '/index.jsp' failed /index.jsp(6): class 'xxx.xxx.xxxx' … | |
hi.. i'm still new to java and i have a project to work on regarding card games. I want to shuffle the deck but i just can't get it.Shuffling the deck must be alternate each element. I don't know if i'm doing the right thing. I keep getting a " … | |
I know that i might be jumping straight into the 'deep end', however I want to make a program which accesses a file (.txt for example) over the network. For example, you type in the IP Address of the computer where the file is stored, and the program reads from … | |
plz reply to my web id my web id is <EMAIL SNIPPED> plzhelp me[code]import java.io.*; import java.applet.*; import java.awt.*; class crystal extends Applet { private crystalGrid crystal; private Button reset, stop, go, moreRows, fewerRows, moreCols, fewerCols; public void init() { reset = new Button("Randomize"); add(reset); stop = new Button("Stop"); add(stop); … | |
Hi, i wanted a code in java where we can export the text file with delimiters to an excel sheet | |
I'm trying to create a program that prompts the user to input the amount of students and their score and then prints it out. However im stuck at slots.get(i).inputData(); as i get [CODE]Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot invoke inputData() on the primitive type int at GradeBook.main(GradeBook.java:52)[/CODE] … | |
Hi Experts, I want to calculate age, i.e. user enter the date of birth and the output would be the age. I guess I should use GregorianCalendar. The logic is subtracting the user date from current date. But how? Can any one have any idea…………… Thanks in advance JIten | |
Hi all, I have developed a java web application which sends sms to many people at once, Now I wanted to get the delivery status of the sms sent. Can Any body help me to do this. Rebeca | |
i need Given a set of numbers on the command line (partition an array) It should check whether a solution exists and if so print the two sets upto now the code i have seems to parttion each integer, what i need is for it to partition the array as a whole, for example lets take the array[1,2,3] this can be divided as [1,2] and [3], we can see that … | |
Alright. So here's what I've currently got. Basically, I've got an array of numbers - any amount. My current code counts up the frequency of each number, then prints out the one that is the largest, and it works perfectly. But the problem is, I need to make it be … | |
Hi all, I am having trouble with including a jsp page with <jsp:include> tag. This is what is happening. I making changes to a portlet application running on Websphere 7 server. This is the hierarchy of the jsp pages. blankPage.jsp -->bookingViewTabs.jsp --> availableRooms.jsp meaning blankPage is included in bookingViewTabs which … | |
Hi All, I have maintained an EJB application, and its working fine with my local machine. But same EAR file not reflecting properly from the server machine. Still i can see my old version of the apllication from server. I deleted the EAR file and redeployed it, but no changes, … | |
hello sir.......i am studying MCA final year now i would like learn java so suggest me how to learn java means core and advance java ......... | |
I am trying to implement a toArray() method in my PriorityQueue. The PriorityQueue returns an array of Objects, but I want to do is have an array of the original type of objects which in this case is Job (which is marked by the 'T1'. The following is the toArray() … | |
Man!! I'm freaked out, I'm not able to do it Actually I add dataValues 2d array and colNames array in new created jtable but it doesn't work. Don't know why :S I also wanted to add button before the table but that's doesn't work even... PLease help me... [CODE] /* … | |
I am getting huge data from database approx a million and trying to store it using csv format in excel like : response.setContentType("application/ms-excel"); response.setHeader("Content-Disposition", "inline;filename=newfile.csv"); but as the data is huge and excel can take only 65K at one time its failing. Please let me know how to download data … | |
hi i am trying to insert into mysql databse using jsp.but i am getting the error as [CODE]An error occured between lines: 38 and 47 in the jsp file: /jsp/havyaka/register.jsp Generated servlet error: C:\tomcat\work\localhost\examples\jsp\havyaka\register$jsp.java:102: Incompatible type for declaration. Can't convert int to java.sql.ResultSet. ResultSet rs = statement.executeUpdate("insert into havyak(usercode,password,email,name,phone,add1,add2,add3,add4,country) values('" … | |
Hello! I am new user of this forum, and I want to ask you for ideas for finding the probability of winning in pre-flop, post-flop etc... For example, there are 3 players on the table (2 opponents). A (spade) A(heart) (1st opponent's cards) A (club) 8 (club) (your cards) 7 … | |
i need a code to merge two ordered list of objects of integers.the method should receive references to each of the list objects to be merged , and should return a reference to merged list object. pls help.... | |
When i run this, i get an error message saying TYpe expected and it points to the line having a.drive(100)... Any help please? Newbie... [code] class Car { public Car(){ int odometer=0; System.out.println("Car constructed!"); } public void drive(int miles) { System.out.println("Driving....."); odometer+=miles; } public long odometer; } class Guzzler extends … | |
hi, could sm1 please show me code that can sort and read text/string character by character into an array i.e identify integers and characters and put them in separate fields in an array e.g 2 integers then 3 characters like 23 IAM, 12 Her, or 32 MALE. it shuld also … | |
I want to pass a arraylist to jsp.How do i do that?? | |
Hi guys i am working on a java car park simulation which controls the entry and departures of cars using the parking lot, the coding so far is below, but when i compile it i get 8 error messages, i have attached the errors message on the page...if anyone can … | |
Hi frndz!! I am doing a final yr project named as Tracking keyboard,mouse,URL activity for security purpose. This is a research level project in computer science stream.plzz suggest me any ideas if u hv n hw to proceed further.what information is required or which sites,books or links should I refer. | |
Hi, I want to select multiple option from Jcombobox plz help me | |
Can you convert CC++ Code into Java, if so how?? | |
I have written this code to determine duplicate words in the string. but its not working. plz help.... i am getting error in line 19.[code]import java.util.*; import java.util.Scanner; public class duplicate { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); System.out.println ("Input length … | |
Hi, sorry if this is an obvious question ive never written a java applet before. I'm looking to write a simple math questions program with a scanner input etc. Can you use a console via an applet? as in inbed within the website a form of console ? that the … | |
Hi, I just finished up AP Computer Science a few weeks ago and decided to write an app that allows me to quiz myself with vocab words and definitions, it works fine while I'm running it in IDE, but when I make it a JAR it refuses to open (I'm … | |
Hi, I am trying to run an applet on a website, but when trying to access a file to write (reading works like a charm), do some wrapping: [CODE] try { FileOutputStream fos = new FileOutputStream("http://mitch9654.zymichost.com/songs.DAT"); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); } catch (FileNotFoundException e) … | |
Creating a program to read a text file full of words in alphabetical order. I then have to read it into a Linked List. The linked list should output total number of words, which I have managed to do. After this it needs to calculate the min and max depth … | |
Hello Guys I need help with adding new row in a JTable. I have created the JTable using Netbeans IDE under Swing Controls. Then I removed all the columns, so that I would add them manually. Now, the function GetFlightInfo() returns an ArrayList with n numbers of rows with 6 … | |
hi..., im having set of points... i need to form a cluster of those points.... i will get another set of points ... and i have to check whether those set of points lies in that cluster or not. please help me how to cluster points i have.... thanks in … | |
Hi I am using tomcat 5.5 and I am unable to connect to mysql server(Wamp2.0i). Here is my code: [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page import="java.sql.*"%> <%@ page import="java.io.*"%> <html> <head> <title>Connection with mysql database</title> </head> <body> <h1>Connection status</h1> <% String connectionURL = "jdbc:mysql://localhost:3306/names"; Connection … | |
Hi, i have got a popup box on a aspx page using JavaScript - what i would like to happen is after the user clicks the box for the browser to navigate to a different aspx page. i have tried using response.redirect and other methods - to no avail. i … | |
Hi I wanna execute servlet progam in net beans , anybody please tell is tomacat must for run it? | |
I have the java code to implemented jsp page, here how to view the pages 100 [code] <% PreparedStatement preparedStatement = null; PreparedStatement preparedStatements = null; ResultSet rs4 = null, rss = null, rst = null; java.sql.Timestamp timest; DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Connection conn = null; Timestamp timestamp; … | |
Hi.. can anyone pls help me to write the source code for B+ tree and B tree. I would be thankful if anyone provide the full source code for AVL,Splay,B+ and B tree. Plz help me. | |
Hi, i got a jeditor pane working to display web links in my program. normal web pages display fine, and I got a hyperlink listener and that is working so they can click links. I use setPage("url as string");. what I'm noticing is if the page has pictures on it, … | |
Hi Everyone, I am writing a program that i want to output some values from the database using a JoptionPane. I have the output using the System.Out.Println(), but i want a JOptionPane. Would anyone please Help.....??? This is what i have so far; st1 = con.createStatement(); rs2 = st1.executeQuery("select Block,Room,Bed … | |
I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application. how do I make it so that windows knows .myFiletype's native application and launch the application on double … |
The End.