32,199 Topics

Member Avatar for
Member Avatar for cleve23

Is there a module in python that i can use to parse javascript??? I finding a module that parse out the error message like what the cssutils do when checking on css script. Thanks

0
54
Member Avatar for himit

Hi, I've an XML document and I am creating another XML using XSL. I need to check some specific conditions and for that I want to use Javascript in my XSL. I tried it, however, couldn't get the desired result. As I could not change the XSL variables frequiently so …

Member Avatar for fpmurphy
0
256
Member Avatar for dylgod

I am writing program that will eventually calculate the speed of sound though a medium using the switch function, but am unable to get it to read the numbers I input, here is the code if anyone can offer some pointers. [CODE]import javax.swing.JOptionPane; /** *This program calculates the time it …

Member Avatar for tong1
0
110
Member Avatar for student.09

[B]PROGRAM:[/B]Design a class named Rectangle to represent a rectangle. The class contains: Two double data fields named width and height that specify the width and height of the rectangle. The default values are 1 for both width and height. A string data field named color that specifies the color of …

Member Avatar for tong1
0
181
Member Avatar for mith_cool

What is the use of requestdispatcher in java? I know it is used to forward requests to servlets. But somebody could give me example or i mean to say a scenario which will prove effective in understanding this concept....

0
61
Member Avatar for VJTechno

write a program that will identify the longest substring in two given strings that is common to both.

Member Avatar for VJTechno
0
155
Member Avatar for rowley4

I have a program that I need to print out a in the following manner: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 …

Member Avatar for rowley4
0
71
Member Avatar for Xufyan

whats wrong with my program ? [CODE]public class divisible { public static void main(String args[]) { int[] divisible; divisible = new int[] {4,9,25,144}; for (int i=0; i<divisible.length; i++) { if (divisible[i]%5== 0) System.out.println(divisible.length); } }[/CODE] I want to print the total elements in an array that are divisible by 5 …

Member Avatar for tong1
0
96
Member Avatar for qdiscoverer

Hi! I'm trying to save/load all my program's data with just one big serialization.(I'm really depending on this) Below are the codes I used to test serialization---but it seems that something is wrong with it. I'm too confused, since I learnt serialization as a 'magical genie' kind of thing that …

Member Avatar for qdiscoverer
0
117
Member Avatar for khRiztin:)

i need to make a simple paint application using java where i need the function of BRUSH. i don't know much about UI. please help me. thanks.

Member Avatar for khRiztin:)
0
780
Member Avatar for avisecjena

hi,....i wanted to develop a web application using java .... I know servlet,jsp,struts,hibernate...bit of spring and EJB could u suggest some good project idea ..... i was thinking of doing a toprated movie database....any other suggestion is welcomed or what could be the possible features ....

Member Avatar for peter_budo
0
85
Member Avatar for shahin_198
Member Avatar for matwe

hi.. can anybody help me to list a few java security problems and its solution? i hope somebody will help me.. thanksss..

Member Avatar for tong1
0
86
Member Avatar for usiyalla

hi guys i'm new in java and this site too i was making a small program but this mismatchexception making me angry i really appreciate if u answer my these stupid questions 1. what is token... 2. Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.nextInt(Unknown Source)[/TEX][/TEX][/TEX] at java.util.Scanner.nextInt(Unknown Source) at Main.check(Main.java:63) …

Member Avatar for NormR1
0
1K
Member Avatar for coding101

Why is the debugger showing that it is skipping my loop in this method [CODE] /** * Adds an item to the list. This method assumes that the list is already * sorted in alphabetical order based on the names of the items in the list. * * The new …

Member Avatar for coding101
0
113
Member Avatar for TheComputerGuy

Morning to all those Daniwebbers out there! I have what I thought was an odd task of converting a String into an INT. I know of the parser Integer.parseInt(x) However if the user enters 02/14/2010 the / are not an INT type. I've thought about using substring possibilities. Taking substring …

Member Avatar for ~s.o.s~
0
185
Member Avatar for WargRider

Well, I am writing a game / engine in 2d in , and I have gotten quite far, my problem is I was reading some stuff about the engine Slick2D, which is pretty much one of the most popular 2d engines in Java, I noticed that the creator said he …

Member Avatar for WargRider
0
278
Member Avatar for avataralien

I am not sure what is wrong with my While Loop because if select ("Press 0 to edit info."), I will not get prompt for "Name" anymore. Another thing is my exception does not work. I wanted to deny user from entering alphanumeric under "Mobile". Only numeric allowed here. Pls …

Member Avatar for avataralien
0
114
Member Avatar for Ubraxis

I require some help with a program I've got to write, the theory behind it is based around OOP, but I'm having trouble grasping what exactly I should be doing. I'm not entirely sure how to call the addProperty method from the Property class, or even that I've written out …

Member Avatar for Ubraxis
0
99
Member Avatar for aryanarora

Hey i m new in java please tell me the delay function in java lika it works in c/c++.

Member Avatar for tong1
0
72
Member Avatar for manailz

public class HelloW { public static void main(String[]args) { println("hi, im aileen an it student, can you help me improve my knowledge with the different languages?"); println("thanks"); } }

Member Avatar for tong1
0
149
Member Avatar for tong1

/* The following programs are written to guard the input. The input is requested as an non-negative integer.Is there other method to do so? */ /* Operation on DOS window: "PositiveInt1" receives a positive integer only. */ import java.util.*; public class PositiveInt1{ static int factorial(int n){ int fac=1; if ((n<0) …

Member Avatar for NormR1
0
129
Member Avatar for prem2

Hi, I have a few basic doubts in java . Statment: class MainExample1 {public static void main(String[] args) {}} class MainExample2 {public static void main(String []args) {}} class MainExample3 {public static void main(String args[]) {}} 1.What is the difference between the above three statments.? 2.Why main method should be declared …

Member Avatar for tong1
0
108
Member Avatar for tong1

/* In the following method, why the factorial goes wrong when n>12 ? */ static int factorial(int n){ int fac=1; if ((n<0) || (n>12)) return -1; for (int i=2; i<=n;i++) fac *=i; return fac; }

Member Avatar for tong1
0
964
Member Avatar for prem2

Hi, Can any one tell me the what is the difference between Identifier and Variable? Thank you, With Regards, Prem.

Member Avatar for tong1
0
68
Member Avatar for shahreza

index no.student room 41 18 M.OPERASI 41 27 M.OPERASI 41 PODIUM 41 24 PODIUM 41 25 PODIUM 41 19 B 206/207 this is a part of data in a text file that i will read and place it in array and save it in another text file.. but i got …

Member Avatar for shahreza
0
195
Member Avatar for Vishwa Vijay

Hello there, I am able do run rmi over lan but when I want to access my rmi server from other system which is out of my lan network it doesnt work. My ip address what I check by ipconfig/all is locally assinged ip address and my ip address check …

Member Avatar for Vishwa Vijay
0
84
Member Avatar for jk_bscomp

hello everyone ,,,,i have recently installed a java version "1.4.2" in my terminal and i made it succcessfully but my problem now is how to compile a java sourcecode using the terminal..pls help me about this anyway,I am using a ubuntu flavor of linux Your help is very much appreciated.... …

Member Avatar for stephen84s
0
264
Member Avatar for rakesh07

[code]class count { public static void main(String args[]) { int a=0; int i; int l=0; int b=0; int c=0; for(i=1;i<=1000;i++) c=i/10; if(i%10==0) { l=l+1; } else if(c%10==0) { l=l+1; } System.out.println("no of zeros in this string is:"+l); }}[/code] this is my code...to calculate number of zero from 1 to 1000,,,,but …

Member Avatar for jon.kiparsky
0
107
Member Avatar for prash.study

Hi All , Can you please explain me about the Java Design pattern as many Developers suggested me. What role it plays while programming. -Prashant

Member Avatar for Zaad
1
138

The End.