32,204 Topics
| |
Ok! Hello Daniwebbers, lets see if you can help me this time: I'm planning to do a bot, to login into a site, collect some data and then send a report to me. Problem is, I've done some web-scrapping data before, but I have no idea on how to do … | |
can i write XML with JAVA ? if can ,can anyone tell me what book should i read ? | |
hi, im a java beginner.i want to read multiple text files,say 100 files.i want to remove the stop words from each of the file and want to save the contents after the stop words removal into newer files. For instance, a file name.txt contains: my name is sash after the … | |
Im fida hussain rind baloch from pakistan sindh. Im graduating in (it) 2nd year. I have problem to understand java core programming. its now started in class but not understand well about basic of java like 1 Global variables 2 access specifer, modifer, return value . i have a problem … | |
Hi, Im new to web services. I have written an EJB(3) project in Eclipse Id(Using jpa to retrieve data from database). Now I want to make this Ejb project to web service. I do not have clear idea about how to do this. The eclipse generates webService and webServiceClient easily, … | |
How do I get the correct response to print out? [code]import java.util.*; import java.io.*; public class MultipleChoiceTest { public static void main (String[] args) { Scanner input = new Scanner( System.in ); String Question; String FirstName; String LastName; String Answer; double CorrectTotal; double IncorrectTotal; double TotalQuestions; double OverallTotal; System.out.println("Please Enter … | |
What is the difference between declaring a variable [CODE]private static final int x;[/CODE] and [CODE]private final static int x;[/CODE] I mean what is the difference between declaring static first then final and vice versa . Thank You :) | |
How do I call the function in the button section?? I tried doing target(); and got when the program ran, it gave me some exception thing.. [CODE] package smart; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import … | |
we were asked to create a calculator in java applet......My codes are working except for one thing....whenever I click the clear button, it only erases the first,second and the total sum.....it does not clear the total difference, total product and total quotient....please help me what to do?...... here is the … | |
Hey guys! I've been creating this program that takes in an input from the user, and if the user is done inputting the required information, the user clicks on the "Ok" button and it opens another form which displays the info that the user inputted from the first form. My … | |
I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) … | |
Good day! I would like to ask how to enumerate the contents of certain vector and print it in a certain file because this code is having problems: [CODE] Enumeration e = v.elements(); ... while(enu.hasMoreElements()){ out.write(enu.nextElement()); }[/CODE] Error: ...: cannot find symbol symbol: method write(java.lang.Object) location: class java.io.BufferedWriter It seems … | |
Ok so I'm new at programming java(well not that new) but I do tend to hit a lot of wall and give up out of frustration. I need help. Can anyone suggest a book for beginners or something. I'm actually doing a computing course but I really don't wanna ask … | |
hello frndz, i was doing this program and then i encountered this strange problem... it is a program in which i want to open two text files and then compare it.. It is giving me two errors: 1)variable f1 might not be initialised. 2)variable f2 might not be initialised. and … | |
So I was trying to add elements into my list. But for some reason the words inside the list are very very small.... is there anyway to increase the font? I tried setFont, doesn't work. :( [CODE] import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import javax.swing.event.DocumentListener; public class sub … | |
i) Create a class called Complex for performing arithmetic with complex numbers. ii) Write a driver program to test your class. Complex numbers have the form realPart+imaginaryPart *i Where i is: √-1 Use floating point variables to represent the private data of the class. Provide a constructor method that enables … | |
hi, I have following question 1) is main thread is daemon thread? if yes then how? 2) what is meaning of daemon thread? 3) Does daemon thread require main method for execution? 4) Daemon thread do its execution without main method? 5) if Daemon thread require main method can any … | |
Hi there, I'm having a rather bad morning today and my brain is being stupid. I have an ArrayList containing String Arrays. How do I convert my ArrayList to a 2D Array? What I have: [CODE] ArrayList<String[]> transactionList = new ArrayList<String[]>(); String[] resultSetRow = {"String1","String2","String3","String4","String5"}; int resultsSetRowSize = resultSetRow.length; for(int … | |
I basically am trying to figure out how to store data into an array by calling a method enterSalary() within another method enterAllEmployees(). This is what the assignment is. I don't understand how to do it. Your solution must: • Store the salaries in an array (the department may not … | |
I am working on a snake game. I have posted about it before. It is going well, and now I would like to implement a high score option, that saves the score online, so that everyone can see it. I am planning to make a menu, that will have a … | |
hi.. i hav knowledge of j2se but i don't hav any knowledge how to create web application with j2ee.. i wanted to use jdeveloper for this last year project.. i donno where to start from. Need help..plzz.. anyone guide me where to start and what to study and learn? and … | |
Okay so I have a program that calculates the time it takes for my application to run and i need it to enter those times in one row in excel 2007. What is the code or way for doing this? There are 1000 times iteration so you can see why … | |
For now this has a sample dictionary of words, but later I will allow the user to provide their own dictionary. [CODE] import java.io.*; public class testReader { private String[] auto = {"lorem", "ipsum", "dolor", "sunglasses", "friend", "time", "flies", "like", "an", "arrow", "daisy", "bell", "the", "quick", "brown", "fox", "jumps", "over", … | |
"A static method can't access a nonstatic (instance) variable, because there is no instance!" The above sentence was culled from one of numerous books that i have consulted/study so far on [B]Java[/B],but till now am still having problem with my understanding about that so called [B]"static modifier"[/B] Because with the … | |
Hi all, i'm pretty new to java applets and been struggling to embed it into a webpage. I made a java applet using eclipse, and ran it using eclipse's applet viewer just fine. However i cannot embed it into my webpage. I placed the jar file i exported from the … | |
I have this snake game I keep talking about and I added in a menu. now when I run the snake game the first time it works. When I press T to return to the title, it returns. When I click on the colored snake game after that the snake … | |
I have placed thread is alive in a loop , so when the thread finish its work so i will start another work.... but this makes program heavier. is there any other method [code] while(thread1 is alive) wait getvalue from thread1 and start thread2 [/code] | |
We are asked to create a calculator but before I do that I must correct the codes given in order for me to know what I must add in my calculator but I do not know how to solve the "void cannot be referenced " error...how can I do that? … | |
Is there any class for information providing box when i bring mouse over the object in java. I mean when i bring mouse over the combo box it display information about that combo box I cant load picture, seems some error in picture loading area..... | |
I have connected java with oracle over lan, in connection string i have provided the IP address, now the startup is very slow, how can i make it fast, i have already asked the same question in java forum but no responce, so i thought oracle expertise can answer this … |
The End.