32,199 Topics
| |
Hi all. I want to read and update a ini file to do some processing. Here is what I have try. [CODE] public static void main(String[] args) { // TODO code application logic here new ReadINIFile().readIt(); //new ReadINIFile().writeIt(); } private void readIt() { try { Properties pro = new Properties(); … | |
I'm testing lucene to write an application. In this testing, I use Tika to extract documents. When I use Tika, I meet this errors. Please explain me. Errors are as follow. [CODE]Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@7541f8 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:122) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:101) at touchLucene.SuckClass.getDocument(SuckClass.java:79) at touchLucene.SuckClass.indexFile(SuckClass.java:117) at touchLucene.SuckClass.index(SuckClass.java:62) … | |
Dear all, Could you tell me how to go about executing MSDOS commands thru Java. I tried with the Process class but it gives an error:2. Could anyone please advise. | |
Hello I am working with sockets in Java and I have run into a problem. I have created a DataInputStream and PrintStream in my client side and I'm attempting to create and ObjectOutputStream and ObjectInputStream for the same socket (the PrintStream is for text the ObjectOutputStream and ObjectInputStream are for … | |
hello! I'm supposed to write a wordguess program that basically runs like the hangman game on iphone, here is my code: [CODE]import java.util.Random; import java.util.Scanner; public class Wordguess123 { public static String replaceCharAt(String s, int pos, char c) { return s.substring(0,pos) + c + s.substring(pos+1); } public static void main(String[] … | |
Hi, I want to customize the add unimplemented method in eclipse based on some condition. I wants to put some programming logic in eclipse based on that condition i want that it will generate the code for unimplemented method. Any help will be appreciated. Thanks in advance | |
Hi, I have a question regarding Eclipse. Usually when I run eclipse on the left hand side are all my java projects I have ever created. I accidentally exited out of the thing that shows me all my projects. How do I get it back? | |
Hi! Two errors pop up when I try to compile this code (to organize classes and fit as many as possible in a schedule), in the lines "Course newCourse = new Course(cName, cStart, cEnd);" and "lastEnd = course.getETime;" I'm not sure why the code is having trouble accessing the course … | |
I am writing a generic JFormattedTextfield InputVerifier to check range for various types, e.g. Integer and Float. The only way that I have been successful so far is to assign an enum based on getClassName and then use switch statements to do parsing, comparisons, etc. Can anyone recommend something simpler/better? … | |
I have this progrom which is compiling and running.Only Iam tryin to understand how to change the action listener Next en previous such that,If i have 5 employees in record it when you reach the last employee in record the Next and previous buttons should be disabled.please advise here is … | |
This is could some help me out and tell me why my code isnt running , thanks! [CODE] import java.util.*; // import utilities for scanner public class month { //declaring our class public static int monthNumber; //inital month number public static int current_month; //current month variable private static month monthnew;//declaring … | |
our teacher doesnt teach us or bother to explain to us he just reads from the notes which are given by the university any help would be appreciated stuck on 2 questions note: they are making us use bluej with 1.5 JDK [IMG]http://i44.tinypic.com/2zjmiv6.jpg[/IMG] [IMG]http://i42.tinypic.com/16iiio5.jpg[/IMG] [IMG]http://i39.tinypic.com/o6lm6b.jpg[/IMG] [IMG]http://i41.tinypic.com/vdg1mh.jpg[/IMG] anyone recommend good book … | |
Write a temperature class.In addition to converting between Celsius and Fahrenheit also include Kelvin. The class has read(), add(Temperature), subtract(Temperature), Multiply(Temperature), divide(double), equals(Temperature), toKelvin(), toFarhrenheit(), toCelsius(), and toString() methods. Methods add , subtract, multiply and divide all return a Temperature. [CODE] public class Temperature { public double temperature; public char … | |
Hi guys, I was wondering if anyone here has any experience with interfacing with a poct-1a device (specs on iso90.ir/phocadownload/csli/POCT1-A.pdf). I am a bit confused by this protocol: it specifies communication with POCT-1a compatible devices, but I don't see any communication protocols in this elaborate document, just descriptions of how … | |
I have been testing out the component JProgressBar, now from what i learned so far it's easy to handle but any way i try it i cannot get it to work. To explain: I want to have a JProgressBar component that will show the total and consumed amount of oil. … | |
Hi! I'n new here, I hope I benefit a lot during my stay. So basically, after a few months I'll be starting my dissertation for my Masters degree in Computing. I want to know what exactly do I have to do? Like do I have to make a significant contribution … | |
Guys I have an homework activity creating a simple calculator and I encountered some errors in my code can someone help me out of this activity or revised my code. My code have not finish yet and still thinking how my calculator works or what code to be in functionality. … | |
I am writing a selenium test, where I am suppose to verify if the injectedheader parameter is appearing in the post or http request. Can someone please help me to achieve this. | |
Hi all, Problem in retrieving the value of the form variable. Followed these steps: Created .jar file out of the .class file generated. jnlp file is working fine and the dialog box for open / save file is opening. but not able to get to file path. Can you please … | |
public class Library { public Library(String Libraries) { } private String Library; public static void main(String[] args) { Library firstLibrary = new Library("10 Main St."); Library secondLibrary = new Library("228 Liberty St."); //errors in this part, cannot find symbol //Symbol: class book //location: class library.library [COLOR="Red"]firstLibrary.addBook(new Book("The Da Vinci Code")); … | |
I'm trying to change the user inputted date into a date object so that i can format it into a date format then display it in the selected format in the textarea [CODE] import java.awt.*; import java.awt.event.*; import java.awt.CheckboxGroup; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class radiobutton … | |
Hey guys, this is my first post here and I need a lot of help. I'd like to start off by saying that I'm VERY new to this so I might have some really obvious errors in here/my code might not make sense(i hope this is not the case) and … | |
I have to open a dialog box to browse file and to get the file path..Similarly a location to save a file. both these tasks need to done in the CLient machine ,because its a web application hosted in the server. I tried using JNLP.Its opening in the server itself … | |
I have made a tetris game on my own and am trying to have options in the menu where when clicked, will change the frame to that size such as small, medium, large. I am trying to do this on a frame and at first I tried setting the preferred … | |
can I use the try...catch statement on java to stop the execution of codes on error? just like the exit sub on vb | |
I have to display the following pattern using a loop: @@@@@@@@@& @@@@@@@@&& @@@@@@@&&& @@@@@@&&&& @@@@@&&&&& @@@@&&&&&& @@@&&&&&&& @@&&&&&&&& @&&&&&&&&& I have the following program that is using a loop but it displays 9 rows of 10 @ symbols instead of incorporating the & symbols. What do I need to do … | |
hey guys i'm having problem to my code in MAGIC SQUARE [B]Output of my current code[/B] 0 1 8 7 5 3 2 9 4 it's a little bit confusing.. the 6th digit turn to [B]0[/B] any help will be much appreciated :) thanks in advance [CODE] import java.util.Scanner; public … | |
This program is supposed to display a frame with a label that contains an image,two buttons, and a text field. When the user clicks the button the image is supposed to change. I know I don't have the code for the change in the text field. I am just trying … | |
I'm supposed to create a factorial application that prompts the user for a number and then displays its factorial. The factorial of a number is the product of all of the positive integers from 1 to the numbers. FOr example, 5! = 5*4*3*2*1 | |
Hi. So here's my code [CODE]public class TextFileIO { static Console c; // The output console static int total; public void askData () { int line = 0; int i; c.print ("Enter the number of words you're going to input: "); total = c.readInt (); File dataInput = new File … |
The End.