35,618 Topics

Member Avatar for
Member Avatar for serradi

I want to add sites snapshot in my project. The search made by me on internet revealed that this can be done with the help of js. The metods found involved links to sites that provide snapshots services and these are not heping me at all. So i have 2 …

0
38
Member Avatar for Genericusername

Hello, I am working on a program that generates 100 random integers and then sorts them into even and odd. When i go to compile the program, it tells me that it cannot find variables randonum, evennum, and oddnum. I'm new to arrays so i'm guessing i declared/ defined them …

Member Avatar for Zetlin
0
245
Member Avatar for hericles

Hey, I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL [url]http://www.somesite.com[/url] and send it to …

0
125
Member Avatar for J-Dub

I used one action listener for an array of buttons that do different things. Exploring methods. I am fairly new to java. I just made a tic tac toe program. I am hoping for people to look it over and tell me what they think, ways to make it better, …

Member Avatar for peter_budo
0
437
Member Avatar for adam25

I'm trying to execute the following code in netbeans & eclipse but without success. [URL="http://read.pudn.com/downloads150/sourcecode/comm/651136/NmeaConverter.cpp__.htm"]http://read.pudn.com/downloads150/sourcecode/comm/651136/NmeaConverter.cpp__.htm[/URL] Program has command-line parameter: -f D:\nmea.txt Eclipse says: [CODE]Description Resource Path Location Type `endl<<expression error> >' cannot appear in a constant-expression nmea.cpp /nmea/src line 358 C/C++ Problem `std::endl(std::basic_ostream<_CharT, _Traits>&)' cannot appear in a constant-expression nmea.cpp …

Member Avatar for adam25
0
352
Member Avatar for sarathsshanker
Member Avatar for JeffGrigg
0
67
Member Avatar for sarathsshanker

[code]import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletException; import javax.servlet.http.HttpSession; import java.util.ArrayList; import java.util.StringTokenizer; import java.io.PrintWriter; import java.io.IOException; import java.text.DecimalFormat; public class ShoppingServ extends HttpServlet { String link; String[] books; String[] music; String[] computers; String<ArrayList> selitems; // JAVA.STRING.LANG doesnot take parameters error String<ArrayList> cartitems ;// JAVA.STRING.LANG doesnot take parameters error …

Member Avatar for Slimmy
0
191
Member Avatar for pseudorandom21

I need to run some code written in Java from my personal website. How do I even begin?

Member Avatar for NormR1
0
124
Member Avatar for sirlink99

I am making a game where random obstacles appear. The obstacles will move towards you. I currently have this code to animate the obstacles. [CODE] for (int i = 0; i < obstacle.size(); i++){ // animate walls obstacle.elementAt(i).x -= 1; } [/CODE] My vector multiple instances of the Walls class …

Member Avatar for stultuske
1
112
Member Avatar for Haridha
Member Avatar for Srin

My panel's paintcomponent method draws a line based on the initial click and the current position as the mouse is dragged. Releasing the mouse leaves one line from the mouse press location to the mouse released location. The problem is. on the next click/drag, the old line disappears when the …

Member Avatar for Srin
0
1K
Member Avatar for jovialbimmer

Hello all. I have to write a java program that allows a user to enter an octal digit and output the binary equivalent for as many numbers as the person wishes using a direct access method. The error is that even though it compiles, the answer (the binary number) continuously …

Member Avatar for JeffGrigg
0
144
Member Avatar for Haridha
Member Avatar for rotten69

Hey, I'm getting this error every time I run my program. I dunno what it means and how to fix it. [code] Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:113) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) [/code]

Member Avatar for NormR1
0
248
Member Avatar for andersonelnino

1)DEFINITION OF DATA REQUIREMENTS Produce an itemised consigment note for each customer including -dimension,weight and price per parcel. -total weight and price consigment -number of parcels RESIDENT DATA -up to 2kg-£7.50 -up to 4kg-£8.00 -up to 10kg-£8.55 -up to 12kg-£9.10 -up to 14kg-£9.70 -up to 16kg-£10.35 -for each extra 2kg,up …

Member Avatar for NormR1
0
215
Member Avatar for sathya88

[code] public class exception4{ public static void method(){ try{ exception4.method2(); throw new Exception("method throw"); } catch(Exception e) { System.out.println("method Exception caught"+ e); //throw e; } } public static void method2(){ try{ throw new Exception("method2 throw"); } catch(Exception e) { System.out.println("method2 Exception caught"+ e); e.printStackTrace(); [COLOR="Red"][B]//throw e; [/B][/COLOR] [COLOR="Green"][U]if include this …

Member Avatar for JeffGrigg
0
258
Member Avatar for J-Dub

I need to know how I can set up a action listener for an array of buttons. I am trying to make a tic tac toe game. I am new to programming. I have seen someone on here ask a similar question but I could not grasp what they where …

Member Avatar for mKorbel
0
4K
Member Avatar for akasekaihime

we are ordered to create a payslip in applet but I am not able to create one for I do not know compute the gross pay, net pay and total deduction.....also I do not know the relation of the days worked,overtime worked and overtime rate to the gross pay......what should …

Member Avatar for hfx642
-1
142
Member Avatar for akasekaihime

I have created my own payslip but then when I compiled it, they said that there are no more errors but I cannot view my output on the applet viewer............ is there something wrong with my code or is the viewer at fault here?? here is my code............ [CODE]import javax.swing.*; …

Member Avatar for akasekaihime
0
319
Member Avatar for skiabox

I have problem starting tomcat now that I have installed macos lion. I get the following error in catalina.out : [CODE] Aug 7, 2011 4:12:01 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Aug 7, 2011 4:12:01 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile …

Member Avatar for skiabox
0
203
Member Avatar for Haridha
Member Avatar for DarkPheonix

[B]Could u tell me why the following problem is coming on running the program where im getting the out twice each time wen i shd get it only once , wen im entering a input im getting the menu twice[/B] [CODE]import java.io.*; class Television{ private String MANUFACTURER; private int SCREEN_SIZE; …

Member Avatar for FireBlah
0
322
Member Avatar for rayvarde

plzz help me how can i do the 3 sorting in 1 program user input using bufferedReader plzzz... bubble sort slection sort insertion sort

Member Avatar for rayvarde
0
86
Member Avatar for vishal1949

I am making a program where i have to write a recursive function that reverses a string. I am a new programmer and need help. The function should return a String and take only one argument, also a String. [CODE]import java.io.*; public class RecursiveFunction { public static void main(String [] …

Member Avatar for JeffGrigg
1
402
Member Avatar for javinpaul

Just wondering is there any way to modify Classpath in your program and force them to include a new directory in classpath ??

Member Avatar for JeffGrigg
0
231
Member Avatar for sarathsshanker

im not able to figure out the meaning of this piece of code: [code] public int void countTokens(String s) { StringTokenizer st= new StringTokenizer(); return st.countTokens(); } [/code]

Member Avatar for stultuske
0
379
Member Avatar for Ashley256

Am trying to create a JTable application but when i try to run the program in netbeans it bring an error on the addRow() and removeRow() and yet when i run it in the commandPrompt it works well what could be the problem. below is a snippet of the code …

Member Avatar for Majestics
0
89
Member Avatar for anjoz

Hi im trying to design a program that matches wildcards example the * , ?, [], {} etc but ive read that java has its own regex support I want to manually code the matching idont know where to start or how to do the program/ design it. Can you …

Member Avatar for Ezzaral
0
79
Member Avatar for gunjannigam

I want to have two textfields which will have the following validations 1) Both should be Integers 2) The value in one textfield should be a integer multiple of other I have used two JFormattedTextFields to this. This is what i have done till now [CODE] NumberFormat updateFormat,sampleFormat; updateFormat = …

Member Avatar for mKorbel
0
274
Member Avatar for VIPERHlr

Hi, I desperately need help for my java assignment. I am required to make an encryption/decryption program using netbeans. It basically takes the users message and encrypts it into characters and vice versa for decryption. My teacher say it has something to do with using arrays. There are 2 main …

Member Avatar for peter_budo
0
136

The End.