36,051 Topics
![]() | |
hey guys, I have this program that calculates the wind chill temp, But I have a little problem. The air temperature `tAir` should be less than 10 and the wind speed `wSpeed` should be over 5. So I need to keep asking for a new input from the user UNTIL … | |
Hi I'm having trouble with this program I am working on. It is to simulate a grocery store. The program will read in a file which is called inventory.dat the file will have items in it like: 11012 gallon-milk 1.99 F 11014 butter 2.59 F Then a customer will input … | |
I am doing a project in which i need to find the coordinates of a red laser dot on a screen. The screen can be plain or the desktop can be projected on a screen. Kindly tell me how do i detect the red spot? Thank you in advance. | |
Hi I am trying to connect a database through Java. I have written a program and it throws exceptions.I am not so strong in java and database connections and I am a newbie. Please anyone help me as soon as possible as its urgent!!! [B]Here is my program:[/B] [code] import … | |
Hello Java Programming experts. I need assistance with the following excercise: You have been hired as a Java programmer by Real Estates Solutions Inc. Your task is to write a Java applet for their web site that would enable customers to figure out their monthly mortgage payments. The applet input … | |
I need to read the last name and five grades for 10 students from a file and calculate the average of the grades and display that information in a file. I am pretty sure I know how to tackle this, but I have no clue how to separate the name … | |
Hello, Im trying to make jLabel component start default system browser and go to the specified page. I've tried to do this by adding listener to the jLabel and this part works fine, i have the problem with starting up the browser. I have only found system specific ways to … | |
My assignment is as follows. Create a class called PursePile that can hold any number of Purse objects. The class should have the following methods: public void add(Purse p) //adds a purse to the pile public Purse findAPursesWith(String coinName) //searches the pile until a purse with the given coin is … | |
I have a slight problem here. I am writing a program that reads in a lot of hurricane data. As you can see in my code, I have read in information from the hurricane category array(this array keeps track of what category each hurricane was). I am trying to figure … | |
hi, the book always have code like this for the beginner .. [code] String status="yes" do{ ...... }while(status.equalsIgnoreCase("yes")); [/code] what if the user enter y? or mistype "yes" to "yse"? the program crash... we can of course use if and else if and else or the switch statement's "default" to … | |
is it true There is constraint in java while using a public , that a file with Java source code can only contain one public class whose name must also match with the filename | |
im trying to program a JAVA GUI but after i compile the code and try to run it i get an error message. i then downloaded a program i made at college and i get the same problem even though it ran at the university. [B]Heres the Code[/B] [CODE]import java.awt.*; … | |
Hi, I am sending a oval shaped ball across a screen and use the repaint() method controlled by a timer to move it. [ICODE]public class Court extends JFrame implements Runnable { private int x = 10; private int y = 200; private int r = 3; /** Creates new form … | |
I am working on a project which requires to display image dynemicaly by selecting the JTable record. At the First time selection Image displayed. BUT when i click on another row of JTable Image can't Update i use repaint method also to drow again the Panel but it can't works. … | |
:) Hey Guys, I'm a newbie poster here and I'm new with java. . I made a GUI of a simple calculator,the problem is I don't know how to put events on the buttons of my simple calculator. . Can you please help me with this problem? Here's my code … | |
I need someone who can tell me where can I get proposed Java project for online practice. Please..I read many theory books and now I want to learn practicing. Thank you! | |
I have the following code it works for mpg files But it grabs every frame of video I want to grab Single particular frame or/at particular time plz help me and post the modified code Its urgent Code: import java.awt.*; import javax.media.*; import javax.media.control.TrackControl; import javax.media.Format; import javax.media.format.*; import java.io.*; … | |
Dear all, Good afternoon. I need a help. I am trying to install an open source DRM server in my system.from OPENIPMP Here they are using Tomcat server. To access the DRM server we are using JBOSS Application server.After installation I am trying to acccess the server by [url]http://localhost:8080/openipmp/jsp/login.jsp[/url]. But … | |
I am new to java and need some help.How do I write a java program to develop a server which logs into another machine using ssh? I have to develop a server that logs into another machine using ssh and executes a command- "free". This server, running on a linux … | |
I have to make a program that simulates a shopping cart, I have it done, it's just that the shopping cart wont print. Please help me in fixing this, this is due for me tomorrow and is worth 40% of this chapter grade. The files are attached below. The main … | |
Hello, I need help on this project for school. My instructions are "Write a program called OfficeAreaCalculator.java that displays the following prompts using two label components: Enter the length of the office: Enter the width of the office: Have your program accept the user input in two text fields. When … | |
I was wondering if someone could tell me if it is possible to take the navbar I made for the website, [URL="http://www.rcamodels.com"]Website[/URL] which was created using Dreamweaver and Fireworks, and convert it to CSS. What I am trying to do is convert the site to mainly CSS. I'm not looking … | |
I posted with a program problem yesterday and couldn't get anywhere with all my errors. So I started over with a new program this morning and now have an infinate loop and a couple of questions about what is going on. My program is suppose to ask for total sales … | |
I'M MCA STUDENT I WONT TO DO THE PROJECT IN JAVA. SO TELL ME SOME JAVA ORIENTED PROJECTS.PLZ HELP ME CHOOSING THE PROJECT AND HOW FAR I GAIN USING THAT PROJECT........ <snip fake signature> | |
Hey guys, I'm new here. I'm taking an intro programming course and I'm having problems getting this code to work. It needs to take two user input numbers and calculate figures based on them. The first part of the code compiles and works properly with a force induced test code. … | |
Im trying to set my new laptop up to do java programming work on. when i try to compile a file i get the javac not recognised as internal external command error. ive tried different help topics including the [url]http://java.sun.com/docs/books/tutorial/getStarted/problems/[/url] link but their solutions dont solve the problem. anyone have … | |
Hi, I'm quite new to setting up webservers so I hope I can find some help here. Currently on a server that I have root access to, under /root/apache-tomcat-6.0.18/webapps/ROOT, I have a couple of .html and .jsp files which show up perfectly when I enter locally "http://localhost:8080/***.html", but when I … | |
Hi. I am having trouble understanding why, if I use setEnabled() inside a button listener, my end result where I update the text inside a text box doesnt work the same way as when I comment out the setEnabled() lines. I am making a simple pi generator based on a … | |
Hello, I am working on something where i need to search and replace many variable names of a program. For example, I have a class Hello and its public variable is world, but the variable world has been changed to earth so now in the program i need to go … | |
![]() | how can you convert a string, which is stored in a vector, into an integer? |
I have been working on this array problem since last Friday. We are to accept an employee's gross sales, multiply that by 9%(to find commission) add $200 for weekly salary. Then the program takes that dollar amount and tallies payroll with ( *'s) beside salary groupings.... ex $200-299 **** $300-399 … | |
[CODE]//function void function(int a[5][])[/CODE] in passing or even declaring a multidimensional array why is it necessary to specify the row while it's ok not to specify the column? | |
this is my java coding: [code] import java.util.Scanner; import java.io.*; public class readNumbers { public static void main(String[]args) throws IOException { int num; String filename; Scanner keyboard = new Scanner(System.in); System.out.print("Enter the filename: "); filename=keyboard.nextLine(); FileWriter fwriter=new FileWriter(filename); PrintWriter outputFile=new PrintWriter(fwriter); for(int i=1; i<=5; i++) { System.out.print("Enter a number: "); … | |
hi, I used to program in C++ and constructed a linkedlist class (not a very fancy one but just enough to use the head and reference to simply add, and remove data in the list. now i am learning java and realize that java.util.*; has a class called the linkedList … | |
Hi, I’ve embedded applet in a jsp page. Initially appearance of applet is coming well. After some time during the process of applet , when the browser window is minimized and restored or if we are switching to any other window and coming back to the applet embedded jsp page, … | |
hello all. :) my assignment is to write a program that accepts a charge account number and then determines whether the number is valid by comparing it to the numbers (listed in the array.) most of my program is correct, except for the last part where it displays whether the … | |
I have a text file that contains alot of different columns. I want to create a different array from each of them (e.g. one array for the years, one array for the months, one array for the wind speed, and so on).... Does anybody know how I could do that? … | |
Can somebody please help me with this code? I have the program correctly coded and operating properly, however, I forget how to write my output to a text file. Can somebody please help me here? Thanks. [CODE] /** * This program calculates the monthly Heat Index for a specific city. … | |
Hi, Did anyone has used jTDS or any JDBC driver to connect to Microsoft SQL SERVER on IPV6 environment? if yes can anyone please provide me code or any help? i tried with microsoft one which they claim support for ipv6 but i didnt go thru even there. may be … | |
I know that you do 6.83783 * 10^3 as 6.83783E3, but how do I do that number times 10 to the negative third? | |
[QUOTE=newtonorina][QUOTE=masijade][QUOTE=newtonorina]Am new in the programming sector. I have a task that requiires me to join a java interface to mysql but I don't know the code to do that. Can you please help.[/QUOTE] [url]http://dev.mysql.com/doc/refman/6.0/en/connector-j.html[/url] Next time start a thread.[/QUOTE] I just wanted a small program in Java for eaxample that … | |
Hey everybody, I am currently working on a program that has to write nice PDFs, and I'm using the iText library to do this. I am nearly done, except for some major layout problems. 1. iText automatically splits tables up if it reaches the end of the page, and continues … | |
Hey all, I have a problem with printing my output in a certain way from my Java program. I actually need to print the output in a table-like structure. For example: [CODE] ============================================================================= Header1 | Header2 | Header3 | Header4 | Header4 | ============================================================================= Info here | Info here | … | |
Hi there I am developing an application that is SIP based , using UDP socket supported by the Java, the application is client /server, what package do I need so I can send SIP message with in the socket I have created, in other word the application looks like the … | |
I'm having a little trouble trying to figure out how determine if 2 purses have the same coins in them in the same or different order. The books that i have don't really show an example of this at all and I can't find any other resources elsewhere online. I've … | |
Hi!! I have created JTable with fixed no of rows and columns.Then depending upon some conditions I want to hide one column,but the methods removeColumn or setting maxWidth to 0 are not working.I am not getting any error. How can I do this? | |
Can somebody help me understand why I get an error message that says possible loss of precision on this program? I don't understand what could be causing this error message. When I get this error message, it highlightes the line of code that says: "theTemps[index] = inFile.next();". Can somebody enlighten … | |
Hi, I don't know whether this is correct place to ask, but since my application is J2EE application (JSP) I'm asking it here. We've several web applications, some of them are J2EE applications (JSP, JAVA) and the administrators of these applications change frequently. One can just change code and add … | |
I am developing an application in Java that grab Image from the video. I have the following code that grabs a frame every given no. of seconds but i want an Image afte each click Even the given code does' nt work Plz help its urgent Thanks in advance : … | |
Hello, I am trying to insert values from a .csv file into a MySQL database from a GUI. I cannot seem to accomplish this. I keep getting a null pointer exception where I set the connection properties in my main method. I also cannot seem to figure out how to … |
The End.