32,205 Topics
| |
Hi all, Im currently working on a FTP program that downloads all files in a directory. Currently, I am able to list all the files in that directory, but I am stuck as on how to download all of them automatically. Would need some help in this. Thank you. [CODE]import … | |
Hi daniweb team, Can any one know how to access Memcache value in java.? very urgent ! Thank you, With Regards, Prem | |
Hello guys, I am on the process of doing a java code which should read the excel file to get the values from the excel sheet to use them in my selenium test cases. I have problem in iterating through each row to check them in my test cases sequentially. … | |
Hi: For the longest time, I have been using the IDE "JCreator". I made previous games on it in the past for school, and when it would come to me implementing a background image in my game, I would make a background class, and have the image in my project's … | |
I'm doing an individual final year project using IBM Aglet, JRun and J2ME. The topic is "Mobile agent shopping system", better with some theories. I have no idea about what types of application should be done. Initially, I intended to build a system for the customers to search for the … | |
hi sir, i am gajendran doing engineering in kcg college of Technology in chennai.i planned to do project on j2ee for hospitals management.so i need some idea on hospitals management services. | |
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 | |
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 … | |
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 … | |
[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 … | |
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.... | |
write a program that will identify the longest substring in two given strings that is common to both. | |
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 … | |
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 … | |
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 … | |
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. | |
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 .... | |
hi.. can anybody help me to list a few java security problems and its solution? i hope somebody will help me.. thanksss.. | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hey i m new in java please tell me the delay function in java lika it works in c/c++. | |
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"); } } | |
/* 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) … | |
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 … | |
/* 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; } |
The End.