32,199 Topics

Member Avatar for
Member Avatar for ef_mag

Hi, i am trying to write a program in java where i would concatenate a CREATE TABLE statement with my values from the first row of excel file and hold the fields name to create the SQLStatement. To be more specific i would like to create a table to store …

Member Avatar for ef_mag
0
227
Member Avatar for devianleong

I've a problem to my linkedlist at line 10. Can anyone help me to solve it? Thank in advance. ![edcc2efd2d7051037a9a147491e15671](/attachments/large/3/edcc2efd2d7051037a9a147491e15671.png "edcc2efd2d7051037a9a147491e15671") This is my code : package linkedlist; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class LinkedList { private String firstName; private String lastName; private static LinkedList<LinkedList> classRoster = new …

Member Avatar for devianleong
0
260
Member Avatar for l.worboyz

Basically i have literally just started learning Java Script and i was seeking some help as to how i could repeatedly display the character "X" any given number of times using a function. Here is what i have so far: function makex(8) { var resultStr = ""; for (var xcount …

Member Avatar for stultuske
0
288
Member Avatar for IMIDEV

Hi every body, I am trying to parse an xml file with sax parser in java and then fulfill a Jtable with the XML elements. The parsing is well done, the Jtable is created but the problem is that all the elements are placed in the same row and the …

0
235
Member Avatar for RawrInYoMouth

I just needed some assistance on formatting the output into a specific fashion. I satisfied all the requirements of the assignment, except the output. I apologize for the bad format of this post, any suggestions and help is greatly appreciated. I need the output to look like: Mr. Random - …

Member Avatar for Pobunjenik
0
443
Member Avatar for John Linux

Hi, I am looking to write a internet scraper, and have considered the following languages: Python C++ Java The scraper will need to: - Retrieve HTML code from a page - Select a link, name and description from a section of the page - Ask for user confirmation (non gui …

0
76
Member Avatar for Violet_82

Hi all, I was reading a few things on the net about how to calculate a leap year in java (and not only for that matter). So something like `...if( year % 400 == 0 || ( year % 4 == 0 && year % 100 != 0 ) )...` …

Member Avatar for Violet_82
0
281
Member Avatar for Violet_82

Hi I wonder if somebody can help me to understand a few things in the following example: // Fig. 8.17: PackageDataTest.java // Package-access members of a class are accessible by other classes // in the same package. public class PackageDataTest { public static void main( String[] args ) { PackageData …

Member Avatar for Violet_82
0
155
Member Avatar for jalpesh_007

I have created one GUI.java file inside it i have written a code of GUI,which includes filechooser and button. I also have created logic.java file, inside it i have write my logic for performing some operation. On the click event of button, i want to pass a path chosen by …

Member Avatar for stultuske
0
159
Member Avatar for toldav

Hello, I'm trying to create a driver for the money class. I need to create and array of 5 money objects. Also I need to use a loop to determine which money object has the most amount of money using "compareMoney()" class: public class Money { private int dollars; private …

Member Avatar for IIM
0
223
Member Avatar for newGains

i am trying to use recursion to find the occurence of a specific character in an array of characters public class CharacterCounter { public static void main(String [] args) { char test[] = {'a', 'b', 'a', 'c', 'd', 'a', 'e', 'a', 'f', 'g', 'h', 'a', 'i', 'a'}; char searchChar = …

Member Avatar for newGains
0
257
Member Avatar for somjit{}

hi everyone :) im hoping to learn a healthy amount of vb10/12 by the end of the month. mainly to improve my cv and get a better shot at jobs. originally wanted to learn vb6 for a college project , but after a post in daniweb , my ideas are …

Member Avatar for somjit{}
0
317
Member Avatar for jspence29

I am writing a program, and the solution I have involves deleting certain elements from an array until there are none. My code is below, but the error it shows is no return statement. This is because I don't have an else statement for some ifs, does anyone know how …

Member Avatar for stultuske
0
321
Member Avatar for game06

i just say some using "this." in setter, getter and constructor method. i have never done this so is this good prative to use "this" in getter or setter. ex: public test(int ix) { this.x = ix; } or public int getX() { return this.x; }

Member Avatar for stultuske
0
127
Member Avatar for mical700

Write a java code, Extend class Fraction by adding methods for the arithmetic operators +, - and /, and the six relational operators (==, !=, <, >, <= and >=). Then compute a menu-driven fraction calculator. Program shoud do all 9 arithmetic operations and 0 to stop. User should first …

Member Avatar for stultuske
0
488
Member Avatar for abhi_marichi

[B]How to convert text in an Image to Text and save it in .txt or .doc format. If there are any open source please help me out....[/B]

Member Avatar for stultuske
0
229
Member Avatar for mahsaee

I have a java class for enc/dec in DESEDE; for some cipher texts it results in this exception: Input length must be multiple of 8 when decrypting with padded cipher I have not written this code myself I have found it in a thread in this website; could anyone please …

0
105
Member Avatar for vojerhosan

I am working on an insurance html site with flash slideshows that lead to embedded Iframe (java) for enrollment. The embedded page starts with a link that needs to be clicked before the user can continue. the link states "javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOptions("LoginCtrl$NewEmployeeLink",%20"",%20true,%20"",%20"",%20false,%20true))" Is there a way that I can have my parent …

Member Avatar for LastMitch
0
96
Member Avatar for sk8ergirl

Hi, I'm working on my final project and I'm almost done , but I notice error in my program I have JList and csv file the user load the file then the user can add new item to the JList they need to enter the id,title,publisher ..etc the problem is …

Member Avatar for sk8ergirl
0
225
Member Avatar for sk8er3577

Hey guys! I have a project for school that involves changing the code I posted under this. One problem that I cannot figure out is how I would convert the mouse listener to a key listener. I believe the checkEmpty, moveTile, and exchangeTile methods will have to be coded differently …

Member Avatar for JamesCherrill
0
472
Member Avatar for Jollyyy100

Is it possible to merge both the 2 element below so that they work on a single page. What i mean is this should be the background of the page: http://tympanus.net/Development/AnimatedResponsiveImageGrid/index3.html and a slideout contact form can appear at the corner over the background: http://www.building58.com/examples/tabSlideOut.html Is it possible, how?

Member Avatar for Jollyyy100
0
312
Member Avatar for tanya1989

Hi, I have a csv file that looks like this: Date, Cost Jan 12, 23.2 Feb 2, 45.3 May 4, 33.4 March 3, 32 May 9, 21 July 22, 332 Aug 3, 765 I am using scanner to read the file and can do that with no issues. Howevet, I …

Member Avatar for stultuske
0
332
Member Avatar for game06

i want to create 2 items on screen. each item will be different color rect. item1 = green rect item2 = blue rect if user get the 1st item. than it will print bullet1 1st image. if user get the 2nd item. than it will print bullet2 2nd image. bullet1 …

Member Avatar for JamesCherrill
0
126
Member Avatar for daksh1998

Hello! I have made a java program in Netbeans IDE (version 7.1). I want to make a file that could run my project without IDE (with the help of just Java, JRE, etc).... I had made a JAR file to try this, but when I open the file, i cant …

Member Avatar for stultuske
0
3K
Member Avatar for tricket_7

I have a binary tree, that user types in a string, if the string does not exist, it adds it to the tree, but if it does, it increases the frequency by 1 instead of adding it to the tree. I have my search working(I think I do anyways), The …

Member Avatar for tricket_7
0
986
Member Avatar for mferarri

Hi DaniWeb, I've just tried to install eclipse on my linux laptop. I have oracle java 7 installed, but I am getting an error (see below). Can anyone point me in the right direction to get Eclipse installed? I don't know what to do next. BTW, I'm using "linux Peppermint", …

Member Avatar for ~s.o.s~
0
125
Member Avatar for XerX

Hello. I am trying to recreate manually a small celsius-to-fahrenheit converter that I created with Design view before that. I used its code for reference, but still doesn't work. When I run my code I don't get the components drawn on the screen, only an empty window. What am I …

Member Avatar for XerX
0
1,000
Member Avatar for HelloPeople1

Okay so I have a function that looks like this: public void createMap(String mapName){ ArrayList<Point> Positions = new ArrayList<Point>(); Positions = Maps.map1; ... } where Maps is another class, and map1 is a method in that class that returns an ArrayList of points. What I want to do is make …

Member Avatar for JamesCherrill
0
286
Member Avatar for missy maretele

need help with the following java program a.s.a.p please a pension fund company maintains employee date of birth details in order to calculate each employee's package value for retirement. the retirement age is 65 years old and each employee accumulates 0.015% of monthly salary towards retirement. write a java program …

Member Avatar for stultuske
-1
852
Member Avatar for chdboy

I'm using Sql Express in Eclipse here is the code import java.sql.*; public class Login { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("This is my new world"); //String url = "jdbc:sqlserver://\\SQLEXPRESS;databaseName=pay;integratedSecurity=true"; String url ="jdbc:sqlserver://SQLEXPRESS;databaseName=pay;integratedSecurity=true"; try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); } catch (ClassNotFoundException …

Member Avatar for chdboy
0
900

The End.