35,617 Topics

Member Avatar for
Member Avatar for realnsleo

hi there, how can i display an error message in java and stop compile program at that point of the error?

Member Avatar for stultuske
0
85
Member Avatar for Rikardsen02754

I only need help with 1 of the programs now. It says to list all the postive integers less than 400 that are divisible by 3

Member Avatar for fraogongi
0
97
Member Avatar for aruna_k_2006

hi everyone, i am doing a project .............i have a problem 1.when i press F4 key i need to get a pop-up window and i need to search names in that poup window . For Example : All the client names start with A 2.when user types A & preees …

Member Avatar for vinod_javas
0
87
Member Avatar for Shakejuhn

i have a problem and i would like to knwo if some one can explain the directions in a simpler form because i have no idea what i am really supposed to do like how many classes i need if i need any and what should go in main. the …

Member Avatar for alpha_foobar
0
199
Member Avatar for new_2_java

Hi all, I would like to know what is the difference between OutputStream and BufferedWriter objects? Can I use them interchangeabally? Reason is because I created a job that has to run every, lets say, 5 minutes. The problem is that when I run my java program manually from the …

Member Avatar for new_2_java
0
146
Member Avatar for realnsleo

okay..could someone tell me how to check if someone put in a float value in a text field. and if not how can i generate a dialogue box with an error. This is how it looks [code]marks1 = Float.parseFloat(tf1.getText().trim());[/code] i stored the contents of the textfield into marks1. How can …

Member Avatar for realnapster
0
70
Member Avatar for bondo

Dear god. this is driving me crazy. I'm working on an assignment involving inheritence, multiple classes, etc. I'm stuck at one stupid part. I have to write a toString method that formats the text. Is there a way to return a string with formatted text? I know about the printf …

Member Avatar for bondo
0
291
Member Avatar for realnsleo

hi people...please help me with this..i writing a program with textfields that a user is supposed to put data in, how can i create an error message and/or a beep to pop up when the user has not entered a value in a textfield..

Member Avatar for peter_budo
0
98
Member Avatar for Casperjames

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

Member Avatar for Casperjames
0
238
Member Avatar for bmxer84

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 …

Member Avatar for Fungus1487
0
158
Member Avatar for sonicvalley

i need java JRE to runa program but i cant seem to get it installed. i always get this weird error. any help? thanks

Member Avatar for sonicvalley
0
68
Member Avatar for n3zor

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 …

Member Avatar for jwenting
0
95
Member Avatar for varunrathi

hello friends, i want to learn java can anyone provide any link to a tutorial or anything else. thank you

Member Avatar for jwenting
0
79
Member Avatar for inzomniac

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 …

Member Avatar for lucky1981_iway
0
179
Member Avatar for thekashyap

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 …

Member Avatar for EnderX
0
166
Member Avatar for dami06

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 …

Member Avatar for ausgezeichnete
0
905
Member Avatar for nizam147

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

Member Avatar for lucky1981_iway
0
117
Member Avatar for grifflyn

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 …

Member Avatar for nikkibaby1979
0
170
Member Avatar for longihale

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 …

Member Avatar for lucky1981_iway
0
94
Member Avatar for akhilesh.nitt

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:

0
62
Member Avatar for Dhanesh.M

I need some help about ,how to naviagte from one form to another on a button click using java swing:-/

Member Avatar for Dhanesh.M
0
80
Member Avatar for farhat
Member Avatar for joshSCH
0
5
Member Avatar for push

if i am run jsp from my system with tomcat server for one project. and if my friend run other jsp from same tomact server from ther system. My QUESTION IS how can link those 2 jsp file under same project folder but in different system....Please help me for this. …

Member Avatar for rgtaylor
0
79
Member Avatar for teckid1991

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 …

0
71
Member Avatar for pplteo

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 …

Member Avatar for thekashyap
0
89
Member Avatar for ajay_tabbu

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 …

Member Avatar for ~s.o.s~
0
108
Member Avatar for pavani2006

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

Member Avatar for ~s.o.s~
0
257
Member Avatar for bmxer84

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 …

Member Avatar for bmxer84
0
110
Member Avatar for tripuraneni
Member Avatar for Phaelax
0
287
Member Avatar for invinate

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 ?

Member Avatar for Phaelax
0
76

The End.