32,199 Topics
| |
| I need to pass buffer object which has generated values to construcor of reading class to print real time generated numbers. Which is the best way to do it? When I pass generated value I get the number but I need to pass values that are beeinig generated and writed … |
Hello, I am attempting to enter two numbers via console in my test class and call a method in my main class to add the numbers and display the answer. Java doesn't like the Calculator.Calcuate(); code. It gives me an error of "cannot make a static reference to the non … | |
Hi, I have a requriement to convert all my properties files from English to Hindi to make my project internationalization. Can any one please tell me, is there any tool to convert my property files from one language to another language. I have found some language transulator sites, but it … | |
Hello, I have an assignment to convert some given jave code into c++. I am currently having an issue wherein when I run the program it tells me that: error C2660: 'approximateSqrt' : function does not take 1 arguments. Any suggestions for moving forward would be appreciated. I have the … | |
Hi all, I need to utilize a Graph Data structure for an assignment. I've understood the following code (posted below) until I came to the search function. The depthFirstSearch and breadthFirstSearch both require a Visitor<T> which is an interface. I'm not much used to interfaces, so I'm not sure where … | |
Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Be sure your code compiles and runs as expected. Name your Java file Searchable.java. Although there is no compilitation errors, or any errors throughout the … | |
plz... I need to add images for drop down list..So how I do it?? This software deverlop in java platform using Netbeans. So this can't be use any Java Script.Can you? Because this is Desttop application .. plz help.. | |
**I am using NetBeans** i have a 'Search by employee id' button . I want when user click this button a dialogue box appear which take employee_id as input from user . then that input be used for fethcing data from the database ( desired table in DB has primary … | |
Hi. I am Using netBeans.. I have 4 JLists (i.e jList1 , jList2, jList3 , jList4) in 4 different tabs in frame. Each List has the value of employee_id from database (i successfully did it already) there are many field in tabs ( i.e rows of databse with employee id … | |
hey, i have a code snippet for implementing the co occurance matrix of a grey level image.The code is :- public class TextureExtraction { public static int[][] binImage; public static int height; public static int width; public static double[] coocFeatures=new double[48]; public static double[] getCoocFeatures(){ return coocFeatures; } public TextureExtraction(int[][] … | |
| I need help with this code. I get zero values, how can I stop generating numbers when I hit the target number? Thanks import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.util.concurrent.locks.ReentrantLock; /** * @author Marin */ public class TargetFinder extends JFrame { private static final long serialVersionUID = … |
Does anyone know some algorithms for converting to bases such as octal, hexadecimal,and binary? | |
Hello everyone, I am close to finishing this project, but i am stuck on my PhoneTest class. To be specific I am stuck on the Method printBill. (This is an Inheritance project). Their is a Date class for the month/day/year Their is a parent class which is the Phone class … | |
Hello, I am making an application for Android that will save users voice command and then while the application is running; compares the realtime data from the mic input to the one that is saved. So far I have saved the voice in wav file now I want to compare … | |
Ok I am a programming student and need help with a problem, I already have most of it (so I don't need you guys to do my hw :P) but I am having problems with am, and I am not even sure if I am doing it right. Problem: (The … | |
Hello, I'm in my first year in software development program and need help with the following program. I've spent hours working on it. Any help is greatly appreciated. Write a java program that will open a file, read each of the records from the file, use that data to populate … | |
For my program I had to create two classes one named Item.java and another one called CoffeeDriver.java. I need to display and sort the following: Item Name Price Coffee $1.00 Water $2.00 Milk $1.50 Bagel $1.25 Donut $0.75 I have the class and array created to display this but I … | |
I have a login form (jFrame1) which has a jTextField1 to take input (employee id) from the user. I want that the value of employee id given by user in jTextfield1 should be transfered to jLabel1 in user main frame (jFrame2) when the user press login button present in the … | |
I have tried adding a main method and running the file but cannot get an * as my result. Where am i going wrong? more information: (i) It should instantiate a Figure object using the empty constructor and then run the object’s drawAt() method with 2 different lineNumber values, say … | |
when i compile my programm the output is : Note: C:UsersOwnerDesktopNew folder (2)Animate.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Can some one help me please? | |
import java.util.ArrayList; import java.util.Arrays; public class SearcherAndSorter { private ArrayList<Integer> values; private int counter; public SearcherAndSorter() { values = new ArrayList<Integer>(); } private void insert(int value, int[] sorted, int count) { /*for(int j = 0; j < values.size(); j++) { count++; if(value < values.get(j)) { values.add(j, value); return; } } … | |
i want to create a code in java in which i can search any file or folder present on my local machine,with appropriate file path and location of that file or folder....if there are more than one file or folder with that name show all the file or foldea with … | |
Okai so I have a jfilechooser : JFileChooser chooser = new JFileChooser(); int returnName = chooser.showOpenDialog(null); if (returnName == JFileChooser.APPROVE_OPTION) { f = chooser.getSelectedFile(); if (f != null) { // Make sure the user didn't choose a directory. path = f.getAbsolutePath();//get the absolute path to selected file //below line to … | |
Hello! I am newbie in creating enteprise applications. I need some help. I managed to configure hibernate correctly. It is connecting directly to MySQL server - everything works well. I want to develop application for small company. I wanted to leave it like that, but I have read that application … | |
Hi, I'm testing a script and I ran into a persistent error. The output of the program should be: 123 132 312 321 231 213 However, I just get a stack overflow error. I'm a bit lost as to what isn't running correctly. CODE: import java.util.Arrays; public class RecursionTest { … | |
when i compile my programm the output is : Note: C:\Users\Owner\Desktop\New folder (2)\Animate.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Can some one help me please? Thanks | |
Hello, I think it's safe to say that I am totally off here. I need some help. > The program should include two classes Book and Author. > A Book should contain a title, an ISBN and publication year. An Author should contain a name and a sorted linked list … | |
Hi I understand the usage of interfaces meaning they are meant to reduce coupling and make coding more effecient. Btu could one explaing how to use it and in what situations regarding in what part of the program do you use it at? Thank s in advance! | |
The code is not all written yet, i only covered so far the following parts: 1- add a book to the library. 2- display the books. 3- remove a book. 4- repeat the previous functions as many times as needed. 5- exit the program. Need help in constructing Classes for … | |
Assalam Alaikum Could any one help pleeeeeeas This is a JAVA code written using Array data structure ! I have to convert it using a binary tree data structure ! I really face difficulty in doing that !!! I mean, I don't know where to start in the process :""(( … |
The End.