35,618 Topics

Member Avatar for
Member Avatar for akhildas
Member Avatar for sirlink99
-1
93
Member Avatar for Nelson.Zacharia
Member Avatar for bansal123

i have a folder that has 1000 text files i want to read all of them character by character and sore them in different matrices . the data in a text file is like 101010101001000100000000001 101010010101000000000000101 101010010100101001010010100 000101001010010010100100101 i want to make a matrix from this data and similar 999 …

Member Avatar for iamthwee
0
195
Member Avatar for JoeD1

Hi, I programmed this code to solve the equation: x/2! + x^n-1/n! where n is the size of series The program functions, but appears to be giving me the incorrect result. For example if I enter 3 for n, and 2 for x I am expecting 1.67 as the result …

Member Avatar for JamesCherrill
0
182
Member Avatar for sweety_1

Hi Can anyone please help me.Im new to coding.Sorry i dont have any code to post.I would try to explain my problem in words.can please some one help me. I have a jsp in which i'm populating a table.In that table i have a column for checkboxes for each row.when …

Member Avatar for LastMitch
0
186
Member Avatar for shanaka95

hi, I am new to use iMacros.I created a sript to get points in addmefast.com It is working,but some times I am having some problems with my internet connection.So sometimes my script stops working because of my bad internet connection. So I want to change my script, when there is …

Member Avatar for JorgeM
0
189
Member Avatar for somjit{}

[This](http://docs.oracle.com/javase/tutorial/essential/concurrency/deadlock.html) is the example i was looking at. The docs say that trying to access the bowBack() method is creating the deadlock , but im new to threads , and i really dont understand why this is happening. In need of some guidance here...

Member Avatar for JamesCherrill
0
336
Member Avatar for Mr.M

Hi DW I've created a program in java and now because I'm also new in java but I know better visual Basic i couldn't complete the program the way I wanted because there are features I find it hard to do so I just completed the main program on java …

Member Avatar for tinstaafl
0
222
Member Avatar for mKorbel

please overview for Java Forum, http://www.daniweb.com/software-development/java/9 isn't accessible for me, I can't see any exception, screen is blank, missing there Q&A's

Member Avatar for JorgeM
0
306
Member Avatar for emanhossnycs

Hello All, I need to generate java classes from the schema exists in the link http://www.compatibleone.fr/schemes/paasmanifest.xsd so I tried to download it & add it to Java Project, then generate JAXB classes from this schema. but the following errors appears to me: can any one help me in solving these …

0
97
Member Avatar for Tanio

I have developed a piece of software that creates an embedded graph database. I was wondering whether I can use a special feature to visualize it within my program without opening other tools. I am developing my software in JAVA using eclipse and windows builder. I have heard about some …

0
156
Member Avatar for EkDs

I have been searching codes to draw line charts using jfreechart on internetand encountering the constant problem of pack(). When I copy the code I find on net the compiler compiles it. But when I try to use it in my code, the compiler shows error. I don't find its …

Member Avatar for JamesCherrill
0
257
Member Avatar for game06

my r.java file in android is not updating. i already tried: 1 - clean project 2 - refresh / restart eclipse/computer 3 - all my string are in double quotes

Member Avatar for peter_budo
0
76
Member Avatar for Shurui

I have a piece of Java code where users will get a bunch of outputs (outputs are numbers). I am trying to edit this code so that I can display the output as a Java Applet via webpage. Here's a part of the result I need to show. String s1 …

Member Avatar for iamthwee
0
245
Member Avatar for Adrian_1

A lecturer has a text file which includes a list of students name and final exam marks. Create a Java program which: * Read all the records from the file * Sort all the records from the file and * Exit from application

Member Avatar for Adrian_1
0
165
Member Avatar for srikanth2321

Hi, I have a "Save" button with the following code Save.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { k = k+1; System.out.println(k); } }); somehow, it is executing multiple times with single click on the button (k values is 4 at times). I googled it but couldn't find some helpful …

Member Avatar for mKorbel
0
150
Member Avatar for srikanth2321

Hi, I have a split container in my frame where the right container has a Jtable and left is filled with different collapse panels displaying detailed data from different parts of the table. If the user clicks on a column then a collapse panel expands and display the information If …

Member Avatar for srikanth2321
0
172
Member Avatar for robgeek

Hi guys, I am confused on how can I access a same class reference object , that is created in class ReadInoiceFile, and be accessed in ReadErrorFile. To be more specific: I have a class called Transaction And then I have a class called ReadInvoiceFile. And finally I have a …

Member Avatar for JamesCherrill
0
276
Member Avatar for murali2489

Hi All, I have written an application for traffic Study which takes traffic load for seven days, inputting traffic load during morning,lunch,evening and night for each day. The output im getting is this Morning Lunch Evening Night Average Day 0 : 5 5 5 5 5 Day 1 : 5 …

Member Avatar for JamesCherrill
0
258
Member Avatar for DarrelMan

I get an unknown source error when I try to use the Scanner class. fabric is the name of my Scanner ojbect. while(fabric.hasNext()) { fabricID[fabricCounter] = fabric.nextInt(); name[fabricCounter] = fabric.next(); description[fabricCounter] = fabric.next(); price[fabricCounter] = fabric.nextDouble(); qty[fabricCounter] = fabric.nextInt(); vendor[fabricCounter] = fabric.next(); fabricCounter++; System.out.println("made it down here"); }//end while fabric.close(); …

Member Avatar for JamesCherrill
0
301
Member Avatar for Shanti C

Hi All, Im generating some output files(kind of reports) in my reportGenerator class.Acutally im creating then into hard disk and showing them in browser. But i want this scenario to be developed into my project : Want to return the generated file as stream to another class, and show that …

Member Avatar for JamesCherrill
0
143
Member Avatar for Azad Omer

We all use `this` keyword many times explisit with our instance fields or constructor, however, this refers to* current object*, for example: class Foo imlements ActionListener{ Foo fooObject; public Foo(){ //.... button.addActionListener(this);//this work as we pass the current object reference as an argument //or button.addActionListener(fooObject);// this will compile, but the …

Member Avatar for stultuske
0
289
Member Avatar for techyworld

hi everyone, anyone can tell me where i can get tutorial to learn JSF framework with java? I am currently using myeclipse for spring.

Member Avatar for DarkLightning7
0
173
Member Avatar for mikewyatt

Help! application is rapidly degrading..... I have had problems with netbeans being able to keep subprojects incorporated with the main projects (loaded into tabs). Usually solved by recompiling the missing .java file, doing a clean build and they load back in. Now I have the error, component cannot be intantiated.... …

Member Avatar for mikewyatt
0
252
Member Avatar for Deve

**I want to enter the value in jtable run time and want to dispaly its sum on same jtable when i pressed calculated button ** how to do please help :) import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.*; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.*; import …

Member Avatar for Deve
1
2K
Member Avatar for cisumma

Hello, I have an app that runs good in the NETBEANS ide. When I run it as a stanalone exec.jar and place the executable in the project folder or when I place the executable on the thumb drive it runs with anomolies. When I run the app from a thumb …

Member Avatar for cisumma
0
187
Member Avatar for TokamakFusion

A student of mine wrote the following code: public class Counter{ private num = 0; public void inc(){ num = num++; } } which fails to increment. Why? If num starts at 0, then the assignment should be num = 0 then num should increment during the postfix incrementation of …

Member Avatar for bibiki
-2
462
Member Avatar for london-G

Hello, I have a textfield price. The user has to input a price(currency) into it. I would like to do something so that when the user types in a curreny it will automatically add the commas and the zero when needed. If the user was to type in 1000000 it …

Member Avatar for JamesCherrill
0
2K
Member Avatar for KellzDD

I need help with some methods in my constructor class. My first method receives scores, computes test totals, stores them in an array and returns them. public int[] computeStudentTotals (int[][] scores) { } My next method computes grades. It invokes the computeStudentTotals method to compute the totals of three tests …

Member Avatar for stultuske
0
244
Member Avatar for DarkLightning7

Ok so im working on a mapping library for my pathfinding system and im trying to figure out what Data structure would be best to use for rapid calls up to several hundred a second, as low memory usage as possible, and not too difficult to store and load pieces(chunks) …

Member Avatar for DarkLightning7
0
203

The End.