32,199 Topics

Member Avatar for
Member Avatar for eranga262154

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(); …

Member Avatar for riahc3
-1
2K
Member Avatar for bulletson

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

Member Avatar for bulletson
0
662
Member Avatar for Rajnesh

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.

Member Avatar for stultuske
1
2K
Member Avatar for F1r3st0rm

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 …

Member Avatar for F1r3st0rm
0
1K
Member Avatar for JerryRong

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

Member Avatar for stultuske
0
309
Member Avatar for pankajagar2002

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

Member Avatar for pankajagar2002
0
1K
Member Avatar for dsoto

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?

Member Avatar for stultuske
0
154
Member Avatar for jaxi

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 …

Member Avatar for stultuske
0
175
Member Avatar for lcweltman

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

Member Avatar for lcweltman
0
171
Member Avatar for angeriel1

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 …

Member Avatar for hfx642
0
729
Member Avatar for ret801

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 …

Member Avatar for berniefitz
0
307
Member Avatar for enzo80

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 …

Member Avatar for Ezzaral
0
223
Member Avatar for dsoto

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 …

Member Avatar for NormR1
0
1K
Member Avatar for vampke

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 …

0
60
Member Avatar for n3red

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

Member Avatar for JamesCherrill
0
99
Member Avatar for J.S.AlKatheeeri

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 …

Member Avatar for jwenting
0
139
Member Avatar for twinkle2011

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

Member Avatar for JamesCherrill
0
379
Member Avatar for rahulindia17

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.

Member Avatar for StephNicolaou
0
34
Member Avatar for udayashan

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 …

Member Avatar for NormR1
0
208
Member Avatar for lgbagabuyo

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")); …

Member Avatar for zeroliken
0
266
Member Avatar for sandman64

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 …

Member Avatar for sandman64
0
190
Member Avatar for SketchGamer

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 …

Member Avatar for zeroliken
0
1K
Member Avatar for udayashan

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 …

Member Avatar for udayashan
0
102
Member Avatar for skylinepkr

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 …

Member Avatar for skylinepkr
0
121
Member Avatar for aldeene

can I use the try...catch statement on java to stop the execution of codes on error? just like the exit sub on vb

Member Avatar for stultuske
0
153
Member Avatar for lbgladson

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 …

Member Avatar for stultuske
0
444
Member Avatar for i_ignore08

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 …

Member Avatar for bibiki
0
135
Member Avatar for bmichelle510

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 …

Member Avatar for jieryn
0
191
Member Avatar for JerryRong

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

Member Avatar for zeroliken
0
109
Member Avatar for Daigan

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 …

Member Avatar for Daigan
0
234

The End.