32,199 Topics

Member Avatar for
Member Avatar for mehnihma

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 …

Member Avatar for mehnihma
0
139
Member Avatar for dburris

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 …

Member Avatar for NormR1
0
170
Member Avatar for bhanu1607

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 …

0
118
Member Avatar for 24x24

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 …

Member Avatar for 24x24
0
215
Member Avatar for Dmiller071

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 …

Member Avatar for Dmiller071
0
154
Member Avatar for justindill

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 …

Member Avatar for JamesCherrill
0
327
Member Avatar for Sadun89

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..

Member Avatar for Sadun89
0
142
Member Avatar for prnjn

**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 …

Member Avatar for prnjn
0
208
Member Avatar for prnjn

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 …

Member Avatar for prnjn
0
740
Member Avatar for nidheeshkumar.r

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[][] …

Member Avatar for NormR1
0
228
Member Avatar for mehnihma

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 = …

Member Avatar for mehnihma
0
162
Member Avatar for Transcendent

Does anyone know some algorithms for converting to bases such as octal, hexadecimal,and binary?

Member Avatar for JamesCherrill
0
119
Member Avatar for charlie.beat

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 …

Member Avatar for charlie.beat
0
219
Member Avatar for arshad115

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 …

0
143
Member Avatar for crash bash

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 …

Member Avatar for crash bash
0
206
Member Avatar for JavaLearners123

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 …

Member Avatar for NormR1
0
232
Member Avatar for emitremmit

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 …

Member Avatar for Subliminimalist
0
186
Member Avatar for prnjn

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 …

Member Avatar for mehfooz
0
227
Member Avatar for MSheraz

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 …

Member Avatar for JamesCherrill
0
197
Member Avatar for Tuz

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?

Member Avatar for TrustyTony
0
86
Member Avatar for jot121

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; } } …

Member Avatar for Patil Raj
0
123
Member Avatar for ashu2288

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 …

Member Avatar for Patil Raj
0
151
Member Avatar for bsabowala

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 …

Member Avatar for Patil Raj
0
162
Member Avatar for mic_

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 …

0
162
Member Avatar for Goldfinch

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 { …

Member Avatar for stultuske
0
145
Member Avatar for Tuz

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

Member Avatar for Ludachrispeed
0
206
Member Avatar for Torf

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 …

Member Avatar for NormR1
0
108
Member Avatar for Yarra

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!

Member Avatar for elijahStar
0
126
Member Avatar for rmash

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 …

Member Avatar for elijahStar
0
2K
Member Avatar for Enjaz

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 :""(( …

Member Avatar for Enjaz
0
147

The End.