32,199 Topics

Member Avatar for
Member Avatar for TheAustinG

For my beginner Java class I am writing a program that will read data from inData.txt and write output to the file outData.txt. I have 5 errors that all say a symbol cannot be found but I'm not sure what exactly it's talking about or what is wrong. The error: …

Member Avatar for TheAustinG
0
324
Member Avatar for murali2489

Hi All, I have completed learning core Java and I want to move to next level in Java Study. I am really confused on what topic to cover next in JAVA . And I also don't know what are all the major topics in JAVA to study after Core Java. …

Member Avatar for murali2489
0
206
Member Avatar for thewayoftheduck

**Question** You are to design and implement a GUI application that will calculate the price of a pizza, based upon the size, style of crust, and selection of toppings. The price is calculated according to the following rules: • A plain small pizza is $6, medium is $8, large is …

Member Avatar for jwenting
0
3K
Member Avatar for F_1

// CS 1063 Project 1: Print Text Patterns The Patterns Class Objectives This is one of three major programming projects this semester. You may NOT collaborate on this project. While you may ask for assistance in debugging, this project should be ENTIRELY your own work. [EDITED BY ADMIN ON COPYRIGHT …

Member Avatar for jwenting
-2
314
Member Avatar for Fatima_110

This code is supposed to determine for a number of random numbers whether its odd, even , prime. At the end all random numbers should be displayed and the prime ones together with the number of odd and even numbers and their %. The part of the code to determine …

Member Avatar for jwenting
0
301
Member Avatar for N841990

how do we use barcode scanner scanned data in our java program .is there any class which can help me.

Member Avatar for straw77berry
0
458
Member Avatar for AndroidUser

Hello, My objective is to create a text file in an android file system. I have looked into the appropriate packages and methods for creating a file. But I am still looking for information about how to access the internal directory structure in order to create a file on an …

0
61
Member Avatar for Aarowaim

Hello everyone, I'm an amateur programmer, and I am working on a program to help me practice my mental math. The essence of this program is that the user inputs an expression which will be the form of each question. Their goal is to solve those expressions as fast as …

Member Avatar for gusano79
0
258
Member Avatar for lena1990

hi all i want to create a pie chart but i get an excepion i will print the code and the exception i will be greatful for any help DefaultPieDataset pie1=new DefaultPieDataset(); pie1.setValue("Section 1", 46); pie1.setValue("Section 2", 56); pie1.setValue("Section 3", 43); pie1.setValue("Section 4", 11); JFreeChart chart=ChartFactory.createPieChart("Log ID chart", pie1, true, …

Member Avatar for lena1990
0
331
Member Avatar for wallet123

Hello! i need to filter the searched data in the database sql and display it on the table. But i keep on getting tis error: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at app.SearchByKey.SearchStudentNumber.SearchStudentRecordReader(SearchStudentNumber.java:38) at app.ui.ListOfStudents.updateSearchTable(ListOfStudents.java:159) at app.ui.ListOfStudents$3.keyReleased(ListOfStudents.java:105) at java.awt.Component.processKeyEvent(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) …

Member Avatar for JamesCherrill
0
429
Member Avatar for java_programmer

I have a question - how mwmory is allocated when any data structure is declared? Suppose I have declared a list as follows - List<Integer> lst = new ArrayList<Integer>(); How many bytes will be allocated for that variable or initially no memory will be allocated? Memory will be allocated when …

Member Avatar for jessicarobort
0
245
Member Avatar for faisal6621

I want to work on an antivirus software program. But, what should I know first to dig?

Member Avatar for JamesCherrill
0
731
Member Avatar for iTechnnn

My assaigment was: Suppose we are working for an online service that provides a bulletin board for its users. We would like to give our users the option of filtering out profanity. Suppose we consider the words cat, dog and llama to be profane. Write a program that reads a …

Member Avatar for masijade
0
510
Member Avatar for dharmatej.m

Write Java program that generates the Fibonacci sequence in the child process. The number of the sequence will be provided in the command line. For example if 10 is provided, the fibonacci numbers less than 10 will be output by the child process. Because the parent and the child processes …

Member Avatar for stultuske
-1
228
Member Avatar for Petranilla

Hi, Having some issues connecting to MS Access Database. I think its ot connecting to the database. Below are the source codes: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DB extends DBDriver implements ActionListener { JFrame f; JLabel Fname = new JLabel("First Name: "); JLabel Lname = new JLabel("Last …

Member Avatar for Petranilla
0
344
Member Avatar for Louie_Rave

Hello everyone. I'm currently exploring Java's GUI and trying a lot of codes now. I found a game GUI source code on the net. This program uses images to properly run. I can run the program now but it only displays black screen. It already have the folder for the …

Member Avatar for Louie_Rave
0
253
Member Avatar for mitalawachat

I want to develop **JavaFX/Java AUTOMATIC CODE GENERATOR**. I need algorithm or sample program. If anyone can help please mail solution to <snip> *DaniWeb Rules include: Do not ask anyone (member or moderator) for help by email or private message*

Member Avatar for stultuske
-1
43
Member Avatar for kylealb007

package guessinggame; import java.awt.FlowLayout; import java.awt.Color; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; //create class GuessingGame that extends to JFrame public class GuessingGame extends JFrame { public static void main(String args[]) { //define variables private JLabel instruction1JLabel; private JLabel instruction2JLabel; private JLabel instruction3JLabel; private JLabel …

Member Avatar for JamesCherrill
0
161
Member Avatar for manel1989

hi every one! i have 2 applications one on eclipse and the other on VS2010C++, so i want to send parameters from the java code to the other, i just konw how to execute the c++ code from the java code. what i want is this : send paramters from …

Member Avatar for manel1989
0
320
Member Avatar for caswimmer2011

Hey all! I am in college doing a speech on programming and one of my topics is to explain the difference between Java, C, and Objective C. I have been programming with Java for 3 years now and just started with C last month, but I don't know the differences …

Member Avatar for Dani
0
453
Member Avatar for Stein102

Can anyone recommend me a good Data Structure and Algorithm book for java programmers? Possibly intended for game development, but not required to be. Thanks.

Member Avatar for prakash.seetharaman
0
113
Member Avatar for lena1990

hi all i have log file with size over 45GB and more than 110 million lines and it is stored in server i want to read the file from the server and insert it to an oracle database in another server but it takes along time so is there is …

Member Avatar for JamesCherrill
0
189
Member Avatar for YumnaZia

this is my code, the only problem I'm facing is that the jseperator is not appearing! import java.awt.event.*; import java.util.*; import javax.swing.*; import java.awt.*; public class AdmForm extends JFrame{ Container con1= getContentPane(); Container con2=getContentPane(); JFrame f2= new JFrame(); JButton b1= new JButton("Click me!"); JSeparator sep= new JSeparator(SwingConstants.HORIZONTAL); AdmForm(){ setSize(300,300); setLayout(null); …

Member Avatar for JamesCherrill
0
123
Member Avatar for student_learner

We want to make a row of bricks that is X meter long. We have a number of small bricks (Y meter each) and big bricks (Z meter each). Return true if it is possible to make the X meter long row by using a combination of the two kinds …

Member Avatar for JamesCherrill
-1
106
Member Avatar for Nautical.RB

Hello daniweb community i'm new here and glad to join this amazing website. Well want I need to understand is how I learn to become a competent computer science major and learn to write code very well. I have always had a knack for this and I love it alot …

Member Avatar for phorce
0
376
Member Avatar for kay19

Hello, having a hard time using my Faculty class, where I have to initialize/createObject from my Education class to Faculty. I would like to use the constructors from the Education class, to be implemented to my Faculty class. Here is my attempt Here's my two codes. public class Education { …

Member Avatar for JamesCherrill
0
264
Member Avatar for stanislav.koshutin

Please help to complete beginner in programming. I work with binary stack of 2 pictures and here is the plugin I use: import ij.*; import ij.plugin.filter.PlugInFilter; import ij.process.*; import java.awt.*; protected ImageStack stack; public int setup(String arg, ImagePlus imp) { stack =imp.getStack(); return DOES_8G+STACK_REQUIRED; } public void run(ImageProcessor ip) { …

Member Avatar for JamesCherrill
0
232
Member Avatar for yi625

con = Connect.ConnectDB(); String sql = "insert into table1 (" +"StudentID," +"FirstName," +"LastName," +"Contact Number," +"E-mail address," +"CarNumber)" + "values("+txtid.getText()+ ",'"+txtname.getText()+"','"+txtlast.getText()+"','"+txtnumber.getText()+"','"+txtemail.getText()+"','"+txtcarno.getText()+"')" ; try{ pst = con.prepareStatement(sql); pst.execute(); JOptionPane.showMessageDialog(null, "Saved"); } catch(Exception e){ JOptionPane.showMessageDialog(null, e); } can any one help me with this? im getting syntax error in insert into statement …

Member Avatar for silvercats
0
828
Member Avatar for Hanamantagouda
Member Avatar for xXFalcoPunchXX

I need help in building a binary tree and putting integers in it. I need to write an add method in my MyArrayBinaryTree class (that extends ArrayBinaryTree) that allows me to place the element to be added in the very next available slot in the array. I also need to …

Member Avatar for JamesCherrill
0
361

The End.