35,618 Topics

Member Avatar for
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
446
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
282
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
158
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
168
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
224
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
258
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
327
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
322
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
128
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
490
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
230
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
106
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
97
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
227
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
473
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
319
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
333
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
127
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
988
Member Avatar for bdheeraj

hi i want to create a project that accepts the image and save it into a database and retrieve 1.i created a table in mysql database with datatypes varchar and blob. 2.to save the file into a blob datatype the file is to be converted into a inputstream 3.i created …

Member Avatar for bdheeraj
0
199
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
126
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
1K
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
289
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
860
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
907
Member Avatar for game06

i have a Life class. which just prints a image of heart. i want to have 6 lifes so iam adding 6 classes in arraylist. 1st heart one left. 2nd heart next to it..... int life = 6; //LIFE - create 6 heats and store in arraylist lifeClass = new …

Member Avatar for game06
0
142
Member Avatar for ahmedhamdy

javascript code : $("input#input_field[name=brithday]").datepicker({ dateFormat: 'dd-M-yy', showAnim: 'slide', changeMonth: true, changeYear: true, yearRange: '1990:2020' }); jsp code : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Profile</title> <link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> <script type="text/javascript" src="JS/javascript.js"></script> </head> <body> <% %> <div> <div class="blackDiv"> </div> <div class="whiteDiv"> …

Member Avatar for ahmedhamdy
0
460
Member Avatar for spowel4

Using this example json file: { "stores": [ { "storeName":"AUGUSTA", "company":"CC", "emailAddresses": ["spowel4@gmail.com", "spowel4@yahoo.com", "steve@compsysplus.com"] }, { "storeName":"CHATTANOOGA", "company":"CC", "emailAddresses": ["spowel4@gmail.com"] } ] } I have this code to try to parse the file: public static void main(final String[] args) throws Exception { // TODO code application logic here ObjectMapper …

Member Avatar for spowel4
0
9K

The End.