36,051 Topics
![]() | |
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 { … | |
Please any one help in this problem, stuck in this. i want difference of login time and log out time, get time from machine in this way 090010 (hour, minute,second), i want to separate time with "-" and insert in database. e.g. login time from machine = 091043 , save … | |
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 :""(( … | |
hi guys i need to increase the size of the font in between eg: 83.507 is my text and i need to increase the size of 50 only and all other remains the same help me guys..... | |
Hello Everyone, everything has been going good with the whole JAVA learning process until today. I have been working on Inheritance and have not been able to complete this project. My problem is coming from the test class, I simply do not know how to set it up to output … | |
Hi everyone, I am reading text from a text file and outputing it in a textArea on Netbeans. I am using file not found exception, however I want to have an error message that pops up. Any ideas? Thanks | |
Pls can anyone help me with a code that will help me get values in a main class from another class... I have two classes, one is user class that has the main method and the other which is process class. I am having a jtextfield and a jbutton in … | |
I have two class. One class is for JAVA text area another class has a object. I want to print in the textarea from another class. The class with the text area. public class LabelStatus extends JPanel { /** * */ private static final long serialVersionUID = 1L; final static … | |
Hi everybody Please help me to configure Tomcat server. I was trying to do a lot of things also search a lot in internet for similar problems but can not find an answer. So I installed Tomcat and I belive it is running correctly: root@serg-PORTEGE-Z835:~/Downloads/apache-tomcat-6.0.35/bin# sh version.sh Using CATALINA_BASE: /home/serg/Downloads/apache-tomcat-6.0.35 … | |
I am developing code to record a video from a webcam....I found some code online, and I was able to understand most of it, but everytime I run it, I get a CannotRealizeException when the following code tries to execute, processor = Manager.createRealizedProcessor(processorModel); does anyone know why this happens ? | |
I am doing project in java that analyzes tweets related to a particular topic and categorizes them as positive,negative or neutral.I have been able to extract the tweets but donot know how to build a classifier to categorize them.How do i build a classifier and how do i train it?Please … | |
HI All iam using applet tag in html file ex: <APPLET name="TreeMenuFrom" code="com.scand.jtree.TreeApplet.class" width="300" height="250" codebase="./com/scand/jtree" MAYSCRIPT> <PARAM NAME="root_closeable" VALUE=""> <PARAM NAME="menu" VALUE="treeMenuFrom"> <PARAM NAME="image0" VALUE="images/item_open.gif"> <PARAM NAME="image1" VALUE="images/item_node.gif"> <PARAM NAME="image2" VALUE="images/item_open.gif"> <PARAM NAME="image3" VALUE="images/item_closed.gif"> </applet> TreeApplet.class is exist under com/scand/jtree but iam getting following error while loading the applet … | |
Hi, I've been working on this k-means clusterization program. I made mistake somewhere in the code, and program outputs only zeros. I tried to debug it, but I was not able to solve the problem. I would like to ask for suggestions how to fix my program. Thanks, public class … | |
Hi, I am having a code which fetches say 200 records,after 6 records i got an exception..So after my exception is caught in catch block i have 2 call a method which can help continuing the exception starting from the 7th object. Can anyone help with some piece of code … | |
While I am reasonably familiar with the use of threads in Java ( or at least the syntax ), the question is exactly when should they should be used and in particular how 'fast' things must be before you use them ? I had thought they were used to prevent … | |
Hi all, I am trying to use a prepared statement for the first time and I am getting confused with parameters. The idea is that a GUI opens with 10 fields filled in, now somebody can update one or more fields and this will be updated to an Access Database … | |
Write a java program that will open a file, read each of the records from the file, use that data to populate a two dimensional array and write the sorted data out to a new text file. Define a class named [B]Munge[/B] which will do all the 'heavy lifting' in … | |
I have been programming woth vb.net for a long time but now i want to start with java. and I wanted to know where i can find enlightening guidance tutorials and code samples that work . I also heard that java requires other programs to run with it. any links … | |
Hi, I'm a pretty new Java student and I was just confused on a few basic concepts. What exactly is the difference between public and private classes and in which case would you use each one? also, what is a constructor, mutator, or accessor? Thank you. | |
I have used 2d arrays many times before, but for some reason eclipse keeps putting a red line under ; at the end of the declaration line for it. When I run it I get an unresolved compilation error. Here is my code: private Zone[][] zones = new Zone[10][10]; What … | |
I am finding the factorial and exponents of variables both recursively and iteratively. What I need help with is finding out how long it took each one. Where do I put the System.currentTimeMillis() part and how do I find out exactly how long it took (i.e. 55 milliseconds)? public static … | |
import java.util.Calendar; import java.io.*; public class DayOfYear { public static void main (String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(isr); System.out.print("Enter the date (yyyy,mm,dd): "); String date = in.readLine(); Calendar cal = Calendar.getInstance(); String[] seperate = date.split(","); int year = Integer.parseInt(seperate[0]); int month … | |
hello, I am lik 98% done with this assignment where the user enters a number, and then it will output if you guessed the right number, or if you have any matching digits, so for example, the if the random number is 24 and the user inputs 20 it should … | |
hai am trying to submint form using document.forms.myForm.submit(). it's work fine in firefox.but it's not working in ie please help me.actual i have two from. I have also tried document.['myForm'].submit() method. <script type="text/javascript"> function showBrowser() { document.getElementById('imageFile').click(); } function submitElmentImage(){ document.forms.myForm.submit(); } </script> <html:form action="/ext" onsubmit="return validateElementForm(this)"> <html:button onclick="showBrowser()" /> … |
The End.