32,199 Topics

Member Avatar for
Member Avatar for BlackStar0703

Ok so I've started learning Java and am half way the book 'Head First Java' (which isn't a bad book btw); but what they've failed to mention is when you know when you need to make a new class. I've learnt that each Class is for each object but how …

Member Avatar for BlackStar0703
0
496
Member Avatar for jackbauer24

Hello and again this doubt has to be explained to my ten year old. It's about JWS (Java Web Start). Could you please explain the red-circled stuff in an easy way ( for my ten year old )? He has no ( no! (or) zero (or) 0 ) knowledge about …

Member Avatar for jackbauer24
0
136
Member Avatar for gzero14

I've tried using the javac command inside the command prompt but it says "javac not recognized as an internal or external command". the java command works perfectly fine. On the other hand, I can compile stuff using the Textpad program. Anyone know why this might be happening? Version of Java …

Member Avatar for zeroliken
0
598
Member Avatar for itsmrshow

I need help, The array in Class Loto generates 6 random numbers and print them out. the Class Lotto askes the user to input 6 numbers which are stored in an array. i need code to compare the two arrays and see if they equal each other, and if they …

Member Avatar for zeroliken
0
217
Member Avatar for erogol

I try to develop a rails web search engine that aims to use carrot 2 clustering rest service that is also work on my computer. However to use these two I need to deploy both of them to same server. Do you know any hosting that makes available to run …

0
132
Member Avatar for marsangel

Hi Guys! I nee d your help! I created a java program and build it and already have my jar file. What I want to know is how can I have an autorun file where the jar file automatically run. I already used this line of codes. [CODE] [autorun] open=myjava.jar …

Member Avatar for DavidKroukamp
0
1K
Member Avatar for AMeddaugh

My Java teacher hasn't been very clear, and i'm kind of flying solo here. He gave us this project, and one part of the project is throwing up a JOptionPane which allows the user to input a number which correlates to a specific car. For example [QUOTE]Choose a vehicle that …

Member Avatar for AMeddaugh
0
147
Member Avatar for dsmith12

I need the program to end the loop after player1 has won but the program continues to run until the loop is done i was wondering i know i need a break statement but i do not know where to put statement at.Any help is appreciated. import javax.swing.JOptionPane; public class …

Member Avatar for DavidKroukamp
0
194
Member Avatar for adil_bashir

please tell me how to convert an integer type to a String. if possible, give some code?

Member Avatar for stultuske
0
168
Member Avatar for adil_bashir

please give some piece of code that will make me understand that how to pass an array to a method/function?

Member Avatar for adil_bashir
0
180
Member Avatar for adil_bashir

Since i am new to java, so please tell me that is there any way by which i can convert integer array to primitive int?? if yes, give some code.

Member Avatar for adil_bashir
0
252
Member Avatar for adil_bashir

i need to return the ASCII value of the argument passed in the StringtoIntfunc(). But i am not getting the real ASCII values and i think the problem is with the return statements? please help. public class StringIntfc { public int[] StringtoIntfunc(String s) { int j =0; int k[] = …

Member Avatar for DavidKroukamp
0
126
Member Avatar for lalaZai

If user enter all these then i need to use what to store it in a same group (many different group) [code]import java.util.Scanner; class addBook { public static void book() { int isbn; Scanner inputDevice = new Scanner (System.in); System.out.println("Enter ISBN ...\n"); isbn = inputDevice.nextInt(); int title; System.out.println("Enter TITLE ...\n"); …

Member Avatar for stultuske
0
112
Member Avatar for techyworld

hi can you help me to modify this program to make it an isoceles or equilateral triangle? right now am having a right angle triangle! [CODE]import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class Triangle extends Frame { Line2D line1 = new Line2D.Double(50,150,150,150); Line2D line2 = new Line2D.Double(50,50,150,150); Line2D line3 = …

Member Avatar for zeroliken
0
979
Member Avatar for TIM_M_91

Hi guys I am able to drop my tables that I want but however when I come to trying to drop rows the rows do not delete. I have tried the following which have all produced the same error duplicate key TABLENAME : Any help you can give for a …

Member Avatar for TIM_M_91
0
136
Member Avatar for phy2sma

I'm having problems adding a JPanel, which has a paintComponent in it, to a JFrame. If this is the only thing I add to the frame, it works. But as soon as I add a layout manager and add other components to the JFrame, it no longer shows the panel …

Member Avatar for JamesCherrill
0
229
Member Avatar for ringo_tech

hi everybody, i needed to play mp3 audio in my AudioPlayer project i found jlayer is the easiest way to play mp3 audio,it plays well but can't stop playing my GUI stops responding until the audio is finished! any help please this is the code of the playing button -chooser …

Member Avatar for ringo_tech
0
1K
Member Avatar for konman795

I need to write a program to find the first 10 prime numbers, i.e. integers that are only evenly divisible by themselves and 1. The hint I got was to make a big array of booleans named "isprime" and mark off all the non-prime numbers as false, i.e. isprime[4] = …

Member Avatar for JamesCherrill
0
768
Member Avatar for ubi_ct83

Hi all, i have a task which is create an algorithm from a java code.and i need help from u guys to check on my algo put a comment on what should i change or why it is wrong. I really appreciate if u could help me on this matter... …

Member Avatar for ubi_ct83
0
152
Member Avatar for ilovejava

[URL="http://i.imgur.com/iwNHY.jpg"]http://i.imgur.com/iwNHY.jpg[/URL] i already set a path for jdk and etc, it worked before but now it doesnt work the code works on ecclipse so the code is correct but i have to learn how to compile using command prompt check out this image i get this same error i do …

Member Avatar for NormR1
0
293
Member Avatar for konman795

Hi all, this is a homework assignment that I'm not sure how to begin with. We are given all the code and I just need to finish a function to convert digits to words. For example, the string "1, 2, and 3." becomes "One, Two, and Three." The String "10" …

Member Avatar for konman795
0
349
Member Avatar for jakubee

Hello everyone, This is my first post in here :) Need a help with v. simple exercise. I need to ask user to input 10 objects of type Product (String name, Double price). I manage to done this. What i need to do now is to validate this inputs! I …

Member Avatar for DavidKroukamp
0
5K
Member Avatar for TIM_M_91

Hi guys I have successfully set up my database which through my GUI I am able to create my tables that i wish and insert data into the table. My problem is through that I can only insert one row of data into a table so what would I need …

Member Avatar for richieking
0
101
Member Avatar for gowans07

Hey, totally new to Java. How would i go about compiling .class or .jad files into .jar? What software do i require too? Thanks in advance

Member Avatar for DavidKroukamp
0
96
Member Avatar for Sanna.1

hello how do you get three strings in to a boolean. Number 1 is greater than the number 2, which in turn is greater than third Number 1 is greater than one of the numbers 2 and 3, but not greater than both Number 1 is greater than at least …

Member Avatar for Ezzaral
0
122
Member Avatar for KazenoZ

Hello guys, Well, here's a simple one for you, which I just could not find the answer to due to lack of finding a good way to put it in words for Google. I'm pretty much a newcomer to Java, first project I used Java for, actually, and it was …

Member Avatar for Zhoot
0
217
Member Avatar for mbrand

Just wanted to introduce myself. I worked at Microsoft and Amazon.com, amongst other companies in various capacities. I now recruit for a really, really cool company. • 22 developers • 80 gigabits/sec video streaming • 600 million PHP requests/day • 35 million uniques...day! • 10 million registered users We are …

0
159
Member Avatar for Syrne

Hello all, I've been fooling around with some code trying to teach myself somewhat about Linked Lists. I wrote this quick program that creates a random number in each node of a list and asks the user to guess the number. I have a quit choice that, when executed alone …

Member Avatar for DavidKroukamp
0
216
Member Avatar for TIM_M_91

Hi there well title says it all really. Is it possible instead of creating tables within my database to create the tables within a form in java? . If it is possible how would I go about doing this?. Before you ask yes my database is fully connected to my …

Member Avatar for TIM_M_91
0
162
Member Avatar for harishpenumudi

[CODE]import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Font; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.PrintStream; import java.net.Socket; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JPasswordField; import javax.swing.JTextField; import javax.swing.UIManager; public class PeerLogin extends JFrame { private JLabel …

Member Avatar for Ezzaral
0
171

The End.