32,204 Topics
| |
this project is an order processing prograam for a flower shop Orders are checked to see how the payment is to be made. Orders may be prepaid or, if the customer has a good credit line, they must be invoiced. Credit must be refused if the customer has paid late … | |
Hey I was wondering how I could write a binary file in Java with code in C++ using the reinterpret_cast function. If I remember the line correctly (not currently at work) it was: [CODE] file.write=reinterpret_cast<char *(&x)>,sizeof x; [/CODE] with x being a variable. How can I do that in Java? … | |
Hi everyone, I'm doing a little experiment on Java loops.. I came across these infinite loops and they never wanted to stop .... Could anyone explain these loops to me, please. Thanks in advance. [CODE] for (int a=0;a <= 5; a++){ int c; int b= 6; for( c=0; c <= … | |
Hello forum, Vaironl here. I'm making a fairly big application for my IB- Computer Science class, and I'm having allot of trouble with the screen. I decided to use null layout to draw textfields, labels optionpanes, Jcomboboxes etc... a couple of things. In my computer it looks like this [URL=http://imageshack.us/photo/my-images/406/recipepicture.jpg/][IMG]http://img406.imageshack.us/img406/1593/recipepicture.jpg[/IMG][/URL] … | |
Am using neatbeans 6.8 to develop java application,am able to package and deploy java programs and run them on my computer but when i package and deploy a java program with database it fail to connect with the 'com.mysql.jdbc.driver'.i know someone out there can just post on how to do … | |
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 |
The End.