32,204 Topics
| |
[CODE]/** * Finds the angles of A, B, and C when given the sides. * Caleb Hess * 4/27/07 */ public class Triangle { /** *@param a the length of a for the triangle *@param b the length of b for the triangle *@param c the length of c for … | |
In my program I get input from the user (type of topping for a pizza) then if there aren't enough left I have to let them change or cancel that topping. I do this with a for loop, my question is: how do I make it so it breaks out … | |
i need java JRE to runa program but i cant seem to get it installed. i always get this weird error. any help? thanks | |
An island has two kinds of inhabitants: [I]Knights[/I]: Always tell the truth [I]Knaves[/I]: Always Lie You encounter two people A and B. You ask the user to enter what A and B say. Your program should output the conclusions (if possible) about the identities of A and B. For example … | |
hello friends, i want to learn java can anyone provide any link to a tutorial or anything else. thank you | |
hi everyone. I'm on the need of using serial ports with a java application. The last time I checked, Sun offered Java Comm as a solution; but now they removed the Api from their site (I'm using winXP). There's an RXTX package as an alternative, but I haven't seen any … | |
A friend in my company recently attended a training titled "LSSD in Java" (LSSD = Large Scale Software Development). The trainer is a guy whom all of us (who attended his other trainings) consider a HUGE SHOT (big shot isn't big enough). Now after 2 days of training guess what … | |
Can someone please help me out here.. I am trying to convert a .xml file to .dtd file.. I got this .xml file from google. <?xml version="1.0"?> <book> <person> <first>Kiran</first> <last>Pai</last> <age>22</age> </person> <person> <first>Bill</first> <last>Gates</last> <age>46</age> </person> <person> <first>Steve</first> <last>Jobs</last> <age>40</age> </person> </book> Please could you help me out … | |
I Am Trying To Run A Hello World Application Which I Downloaded From The Net. But I Am Getting An Error Saying That Driver Class Not Found Where I Am Specifying The Driver Name As Follows 'com.mysql.jdbc.driver' Which Is Not Recognising Can Anyone Help In Running My First Hibernate Applciation. … | |
Hi I have written this program to find out how many vowels are in a sentance. What i need to do now is is capitalise the vowels and put a star next to the capital showing how many times that vowel was used in the sentance. so that the output … | |
Okay I am trying to get an array (a primitive integer array) called a1 which contains integers. I want to return an ArrayList that has the entries of a1? This should be really simple, but it is just one of those days.... like [CODE] public static ? formlist(//a1 is sent … | |
hi i want to implement auto filter for a column of an excel sheet .. can anybody plz help me.. plz help me.. thanks in advance.. :pretty: :pretty: | |
I need some help about ,how to naviagte from one form to another on a button click using java swing:-/ | |
Im working on this project for my class and what to make a chat thing for the network of computers in the room... i have everything set up correctly im just having trouble figureing out how to brodcast to all users. I assumed using a Vector and Threads would work … | |
i need make this program run..anyone can help me? [code=java] import java.util.*; import java.awt.*; import java.net.URL; class Prim extends CompleteEuclideanGraph { private ArrayList remainingPoints; //points not on MST private ArrayList completedPoints; //points on MST private Point[] chosen; //array of chosen points for each step private int bpoint = -1; //pointer … | |
hello friends i have write a code(j2me) for mobile game my code is build but on run i got error message: Unable to create MIDlet Jeep.java java.lang.ClassNotFoundException: Jeep/java at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at com.sun.midp.midlet.Selector.run(+22) Execution completed. 3610981 bytecodes executed 7309 thread switches 1647 classes in the system (including system classes) 18046 dynamic … | |
1. Write a java program using following details. You are free to make all necessary assumptions. All the assumptions made should be documented. There are four scientists who need to be ordered according to their smartness (smartest to least smart). There is a text file “smart.txt” in the following format: … | |
I have to create a program for class and I am stuck. Basically, the problem is that we need the manager to enter in the number of pizza toppings on hand at the beginning of the day. Then, when a customer orders a pizza with toppings (ie. small pizza with … | |
hi freinds, Plz help me how to set the value of ace in Blackjack game. | |
Hi, i'm reading from a URL that has cyrillic content, and when i try to display it, it shows lots of questions marks or sometimes other strange letters. how do i make it work correctly ? | |
Can any body help me to solve the problem of How to get integer values using Jtable from database | |
hican someone tell me how can i run my j2me application in PocketPC. i tried it but it gives unnatural result. as it work ok in nokia 9300. and also tell me the emulators (open source) that easily integrate in netbean 5.5 having jdk 1.5. plz give me links for … | |
I have RedHat Fedora 4/5/6, they all have IBM Java 1.4 which doesn't do GUI correctly, and is not supported in FireFox browser for Applets. Anybody know how to setup Sun Java 5 and FireFox browser Java on Red Hat Fedora 4/5/6? Thanks | |
hai i want to create 3 separate threads for different tasks in my program . how can i differentiate them in the run() method | |
I have a project that I am doing, but I cannot get my final answer to go into the text field that I want, it keeps coming out in a new terminal window. What did I do wrong?? import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; … | |
// ********************************************************** // Count.java // // This program reads in strings (phrases) and counts the // number of blank characters and certain other letters // in the phrase. // ********************************************************** import cs1.Keyboard; public class Count { public static void main (String[] args) { String phrase; // a string of characters … | |
Hi, i'm using a JTextPane that i've customized with a method to set up some tabstops. In my GUI class constructor i call the tabstop setup method and it works fine. I'm having a problem though when i load text into the TextPane. Even though i call the tabstop setup … | |
Hi everyone. I just started learning Java and did a few application to familiarize myself with it. I wrote an application to output a 2D array table but i can't seem to do it in an applet. Can anyone guide me along here? Problem is when i tried to output … |
The End.