35,618 Topics
![]() | |
I am trying to implement the calculations, and I am getting totally wrong answers. This program is to calculate the distance of a projectile based on launch angles as well as (of course) launch velocities(speeds). The formula is as follows: [URL="http://learn.flvs.net/webdav/educator_apcsa_v8/module09/rtfmod09/09_04_VirtualLectureNotes.pdf"]http://learn.flvs.net/webdav/educator_apcsa_v8/module09/rtfmod09/09_04_VirtualLectureNotes.pdf[/URL] Here is the code that I have for doing … | |
This is my first post: Ok, there's GPL'ed programs, and GPL'ed Java. Is my java program, which uses no other GPL'ed programs all my own? Simple question, simple answer... don | |
I am very much a beginner in programming, so this maybe nothin but this error keeps popping up and i'm unsure why. cannot find symbol - constructor Track this is my source code and its a work in progress. public class Track { private String name; private String creator; private … | |
Hi Im trying to write simple miles per gallon program, I have gotten every part so far, but I cannot figure out how to "calculate and display the miles per gallon obtained for each tankful and print the combined miles per gallon obtained for all tankfuls up to this point." … | |
Hi, Im trying to write a program of a salary from a textbook problem, but am having a hard time. Hopefully you can get the gist of the program, I want it to keep asking for items of what the "salesperson" has sold, until an invalid item is entered, where … | |
I am writing a jsp page where a set of rows has been created dynamically according to the number of rows in particular database table.Each row consist of 5 read only values, one text box, one checkbox and a set of 4 radiobuttons. The radio buttons and checkbox are named … | |
I got an string with values of lat long and i want to get the content of each first the desccription and then the values the string Autopista Caracas-ValenciaCaraboboCalles, carreteras, caminos, o ferrocarril10.2166667-67.3333333Autopista Valencia Puerto CabelloCaraboboCalles, carreteras, caminos, o ferrocarril10.3272222-68.0961111 i want o get Autopista Caracas-ValenciaCaraboboCalles, carreteras, caminos, o ferrocarril@10.2166667 … | |
i have designed a website using JSP and mysql, there is an enquiry form in that website ,when one fills the form the details automaticaly go into databse as the logic goes..but my problem is on localhost(tomcat) when i fill the form and submit, a retrieved form is displayed which … | |
Could potentially have the longest error message EVER and have no idea how to solve it .... Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems: The import java.sql cannot be resolved The import javax cannot be resolved Connection cannot be resolved to a type Statement cannot be resolved to a … | |
please help me to resolve the databasbase connectivity problem in java for mysql .i am using jdk 1.5 ,if there is need to put a file then please mention where it should be copied ,and i am writing the code and error occuring that code. code: import java.sql.ResultSet; import java.sql.SQLException; … | |
Could someone please help I am getting an illegal start of expression [code] import java.util.Scanner; public class 9a { // The main method public static void main( String args[] ) { Scanner input = new Scanner(System.in); // declares and initializes the variables used to store user input. int n1; double … | |
I am almost done with my program. And for some reason i cannot get my boolean to become true. here is the code [CODE]//This program allows the user to order a pizza import java.util.Scanner; import java.text.*; public class PizzaOrder { public static void main(String [] args) { //create a Scanner … | |
This is my code: package hello; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author User */ public class TBexample extends MIDlet { Display display; public static String txt; TextBox sample; public TBexample() { txt = "enter your text here"; } public void startApp() { // String localtext ="hi"; display = Display.getDisplay(this); … | |
I'm working on this polynomial program but I have stuck at some points which still don't know what's wrong exactly. So anyway, I have to add 2 polynomials, subtracts, and multiply. So could anyone please correct this code below. Thank you very much!! [code=syntax] public class Polynomial implements Cloneable { … | |
Hi, I formatted my pc and restored everything back and now I forgot how to install jdk and set the path. I am using windows vista..... I created a CLASSPATH in system variables as follows .;C:\Program Files\Java\jre1.6.0_02\bin and path in system variables as %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_12\bin and again a new path … | |
Hi, I am trying write a program to input and output data from a microsoft access file with java.sql class and the swing class. basically i am on the first stage, trying to figure out different parts. the first thing i would like to know is: (assume it is already … | |
[i] Topic The topic of this question is: Creating a MySQL table and Entity from Database. [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] This is another attempt to render data in a visual web javaserver faces table. The purpose … | |
i am using an else if to call a method from another class but it says a ')' is expected can anyone help please :D else if (source == tol.jbTakeOut) { bookname = tol.jtfBookName.getText(); authorf = tol.jtfAuthorFName.getText(); authors = tol.jtfAuthorSName.getText(); [I]Store.changeLoanStatus(String bookname, String authorf, String authors);[/I] //the line which the … | |
Hi Everyone I am new and just found this site yesturday I am looking forward to visiting here often. I have been working on this project (yes for school the awful Inventory Program.) I had it working and did a couple of quick changes walked away for a nap and … | |
Hi all, I'm kind of new in Java MIDlet, and i'm having some troubles. Let say i got a MIDlet project, named APP.java, and the MIDlet project runs smooth without any problem. And i have another java application, named testing.java, and the java code runs smooth as well. But when … | |
Hi, I have to display a JCombobox which contains JCheckBox(containing a single character) as its elements. Combobox has to allow multiple checkbox selection. When the selection is over, combobox has to display the selected checkbox values. Thanks in advance, Sagar | |
HELP!! i can't install programs that need activex control and java. my information bar doesn't display. :sad: | |
can anyone help me with this school project? they want me to create something like this : using Net income = Revenue - costs - salary net income percentage is by multiplying (Net income)/(Revenue Ratio) with 100% Handphone net income computation ----------------------------------- 1. Press A to enter Revenue and Costs … | |
Hello people .. I have a problem with my program ,, it is designed to count the number of digits and if its 5 it will test if its a palindrome number.. my problem is with the while loop... please help public class Palindrome { // checks if a 5-digit … | |
[CODE]/* * PartOfSpeechView.java */ package partofspeech; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import javax.swing.JDialog; import javax.swing.JFrame; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; import java.io.IOException; /** * The application's main frame. */ public class PartOfSpeechView … | |
i don't know if this is the place to ask this but is there a way to write a program that will increase the mobile phone's bluetooth's range for one second??? if not in java then is there something else... thank you in advance :) | |
Hey guys, I had to determine the output of given code that uses a 2D array. The 2D array given looks like this: data.txt: 5 8 4 3 9 5 6 4 9 5 3 2 2 2 0 9 7 3 7 4 5 6 9 5 8 8 … | |
Hi All! This forum looks refreshing. This will be my first post and I am a new software guy working on a Java Gui issue. I recently built a java graph class and the graph works nice. The Graph class was lineonly, and it extends JPanel. In the main function … | |
Hello everyone, I am having a problem, I want to transfer the data from a text field which is found in the class "ServerInterface" to a method in another class "Server". I wanted to transfer data to the method "sendData()" in the class Server when the user enter data in … | |
I work for a company that does not allow us to have access to the internet but I need to create graphs using HTML. What I want is this file to be able to read from a file and create a graph that tracks four values; A,B,C,D. The graph needs … |
The End.