31,001 Topics

Member Avatar for
Member Avatar for ibthevivin

I'm wondering if there is a way to simplify this program. I feel like I wasted a lot of time on all the ternary codes at the bottom for labeling "bill" for the three values (ten$, five$, and one$). Also for deriving the values for q,d,n, and p I feel …

Member Avatar for JamesCherrill
0
137
Member Avatar for Majestics

I am creating a project, which one start copy itself to any drive and stop execution and run other file which was copied.... No progress yet... Has any one done similar type of project before.... Need a bit for starting guidance.... Thank you.

Member Avatar for mKorbel
0
108
Member Avatar for umsungun

I'm trying to create a word game in which a player must guess a secret word. Initially the secret word it showed as a series of underline characters corresponding to the length of the word to guess example: “pig” - - - When a letter entered by the player is …

Member Avatar for peter_budo
-3
188
Member Avatar for kumaresen

i ahve to write a java program using method...the program uses a method to calculate the total cost to rent the business area.then it prints the result... the rent for 100 square feet tent is 100 per day...the user has o key in the square feet needed and the rent …

Member Avatar for peter_budo
-1
211
Member Avatar for s_j_s

Hi all, I am looking for a shareware source code for a mortgage calculator to place on a WordPress website? Greatly appreciate your help. Thank you!!!

Member Avatar for jwenting
0
310
Member Avatar for pro_learner

I have developed a Java GUI App.I want to connect that with mysql.I have already connected a seperate java file with mysql.That java class is also in the same package in my Netbeans project.I want to know is it possible connect DB by using that seperate java class?

Member Avatar for pro_learner
0
145
Member Avatar for oldezwe

once I have requested my result set from my server, how do i store it as the variable that I want it to be? EX. [CODE]ResultSet rs2 = st.executeQuery("select userIDnum from userInfo where username = '"+username+"'");[/CODE] how do i then save userIDnum as an integer to use in my program?

Member Avatar for anand01
0
44
Member Avatar for javabeg123

i have to create a Weight application that prompts the user for their gender (male or female) and their height and then determines their ideal body weight. The following formula is used to approximate ideal body weight: men: Ideal Body Weight (in kilograms) = 60+ 2.3 kg per inch over …

Member Avatar for IcantC
0
180
Member Avatar for badnack

hi at all, i'm wirting a program (a chat) to connect two process via socket using ssl connection. In order to make portable this chat i've written a single body formed by two threads, the first has a client behaviour (users can connect to other users) and the second thread …

Member Avatar for badnack
0
238
Member Avatar for tomay

Hi guys, I'm trying to create a spotify like program for windows. I know a little about programming, I'm just not sure where to start with this project. Any advice would be greatly appreciated. Thanks

Member Avatar for NormR1
0
32
Member Avatar for asif49

One of my classes have a large amount of the logic and functionality of the program inside it. Let's call it Class A. This uses other classes, even an interface class and utilizes its methods too. Does this mean that every class has a dotted line arrow(dependency) arrow pointing TOWARDS …

Member Avatar for asif49
0
45
Member Avatar for sirlink99

I have a program, and I would like to rotate the image (4 directions) I am wondering if there is an easy way to rotate the image. here is the code, and where I would like to rotate the image. [CODE] import java.awt.*; import java.awt.image.ImageObserver; import java.io.*; import javax.imageio.ImageIO; public …

Member Avatar for mKorbel
0
169
Member Avatar for oldezwe

I'm having a hell of a time trying to make a login form. This is what I have at the moment.... [CODE]import javax.swing.*; import java.sql.*; import java.awt.*; import java.awt.event.*; class LoginDemo extends JFrame{ JButton SUBMIT; JLabel label1,label2; final JTextField text1,text2; LoginDemo(){ setTitle("Login Form"); setLayout(null); label1 = new JLabel(); label1.setText("Username:"); text1 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for umair jameel

public class First { public static void main(String[] args) { int a; a=EasyIn.getInt(); System.out.println(" the value of a " +a); }} // this code is showing an error of " easy In " not finding symble. // help me

Member Avatar for NormR1
0
801
Member Avatar for asif49

How is a "extends" relationship shown on a uml CLASS diagram. If [CODE]public class classA extends classB { ... }[/CODE] How will this be shown on a uml class diagram?

Member Avatar for JamesCherrill
0
95
Member Avatar for sirlink99

I am getting this error. [CODE] Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 >= 0 at java.util.Vector.elementAt(Unknown Source) at Game.collision(Game.java:176) at Game.<init>(Game.java:20) at Frame.<init>(Frame.java:12) at Frame.main(Frame.java:31) [/CODE] The game was working, but when the enemies came on the screen it started lagging, so I made another thread, and just copied the …

Member Avatar for sirlink99
0
169
Member Avatar for asif49

Is there any possible way to allow multiple different types of identifiers on a class. I.e. on ArrayLists you can do: private ArrayList<Employees> e = new ArrayList<Employees>(); the "Employees" is the identifier and can be accepted along with many others. But if I've created my own class and I want …

Member Avatar for stultuske
0
94
Member Avatar for lgbagabuyo

// Loel Jolito Niño C. Bagabuyo package marathon; public class Marathon { public static void main(String[] args) { String[] names = { "Jessabel", "Jerome", "Kristine", "Rodel", "Grajen", "Reymart", "Kevin", "Sherwin", "Orniel", "John", "Kirk", "Jovert", "Rhea", "Mariella","Melart", "Michael" }; double[] times = { 341.0, 273.0, 278.0, 329.0, 445.0, 402.0, 388.0, 275.0, …

Member Avatar for lgbagabuyo
0
2K
Member Avatar for asif49

I need to create a class which does the exact same functionality as a Set does, but for this project I'm not allowed to use the java import for sets. The only functions I need are adding to the set and removing from a set. If someone has done this …

Member Avatar for NormR1
0
104
Member Avatar for Germy Loo

Hi, I've made a JApplet trying to simulate a macroeconomy. It works as I want it to when viewed in appletviewer, but when I view it from a browser, clicking Proceed after having changed values of JSliders in EconFinalM.class doesn't work. EconFinal.java: [CODE]import java.awt.event.*; // Import Libraries. import java.awt.*; import …

Member Avatar for NormR1
0
260
Member Avatar for Adami

Hello All ! I'm trying to write a Robot Class who have several methods. One of its methods is move() that move the robot the direction his looking at, one step ahead. I'm getting an error on this: [CODE]switch (Direction) {[/CODE] If some one can help me find the mistake, …

Member Avatar for Adami
0
375
Member Avatar for Spiere

So im making space invaders, and I cant quite figure out what I have to do in order to get the ship to move. I have the beginning of the movement code in SIbase, but I am unsure what to do from there These are the three classes that are …

Member Avatar for StephNicolaou
0
327
Member Avatar for hemanthjava

I wanna find some good site which lists some good Java Programming Questions (Programs to work on the comp) along with their solutions. Regards, [url]http://www.freejavaguide.com[/url]

Member Avatar for stultuske
0
158
Member Avatar for Sweetblac2000

Hi I am new to Java and this is my issue. I can compile my code successfully but when I try to get the program to run it gives me an error stating.... [code=text]Exception in thread "main" java.lang.NullPointerException at TictacToe.makeTicTacToe(TictacToe.java:37) at TictacToe.<init>(TictacToe.java:25) at TicTacToeMain.main(TicTacToeMain.java:13) Press any key to continue . …

Member Avatar for JamesCherrill
0
82
Member Avatar for siddharthan64

79 0009!017009!0479%0009!0479 0009!0469%0009!0469 0009!0459%0009!0459'009 0009!0459%0009!0449 0009!0449%0009!0449 0009!0439%0009!0439 0009!0429%0009!0429'009 0009!0429%0009!0419 0009!0419%0009!0409 000'009!0399 0009!0389%0009!0389'009 0009!0379%0009!0369 0009!0349%0009!0349 0009!0339%0009!0339 0009!0339%0009!0329'009 0009!0329%0009!0329 0009!032 In this data, I'm supposed to extract the number 47, 46 , 45 , 44 and so on. Im supposed to avoid the rest. The numbers always follow this flow - 9!0 …

Member Avatar for hiddepolen
0
257
Member Avatar for oldezwe
Member Avatar for peter_budo
0
56
Member Avatar for ali11

Hi i m trying to design a program using object oriented approach.everything works perfect for me except the bounces.If the new height is less then 0 then multiply both the height and velocity by -0.5 to simulate the bounce. [CODE]import java.util.Scanner; public class Ball11 { public static void main (String …

Member Avatar for zeroliken
0
271
Member Avatar for ali11

Re-design the program using the object-oriented approach - Allow the user to play the ball as many times as he wants and each time he can decide the initial ball speed and the number of bounces to stop the ball here is what i did before. [CODE]import java.util.Scanner; public class …

Member Avatar for peter_budo
-2
132
Member Avatar for chriswinter

I need to print out the scores and the grades when entered and i do not know how to print the scanner. im sure i am probably missing other things as well. [CODE]import java.util.Scanner; public class Scores { public static void main(String[] args) { int count; int score; int total; …

Member Avatar for chriswinter
0
128
Member Avatar for vishal18

Hello to All, I want to use basic jasper report utility.... But facing error as mentioned below, please help me.....I'm beginer of JReport [CODE] import java.io.File; import java.util.HashMap; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.util.JRLoader; import net.sf.jasperreports.engine.util.JRSaver; import net.sf.jasperreports.engine.xml.*; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.export.JRPdfExporter; …

Member Avatar for vishal18
0
10K

The End.