32,204 Topics

Member Avatar for
Member Avatar for RaigaX9

Hello, I need help on the NFLTeam program that uses an array on the number of players and their names. I've been doing an NFLTeam program where it prints the wins and losses of both falcons and steelers as well as printing out the number of players in those teams …

Member Avatar for RaigaX9
0
193
Member Avatar for sciprog1

Hello Members, Is it possible to have a Scrollbar for a JOptionPane as described below? [CODE]public class Hello { public static void main (String args []) { JOptionPane.showMessageDialog (".............."); } }[/CODE] If you can show me some pseudocode or a sample program, I would be very grateful. Thank you!! sciprog1

Member Avatar for sciprog1
0
1K
Member Avatar for amit.hak50

Actually, I want to make SEO(Search engine optimization) software in java ..any idea how i can start???Just like this or any link submission software... Given below is a software type that I am thinking of making.. [URL="http://www.seoelite.com/"]http://www.seoelite.com/[/URL]

0
114
Member Avatar for hatux

I have a couple of classes in my app. So in one of them i use same int to make my life easier on the other one [CODE] import java.util.*; public class ObtainKey { public static void KeyAnalyzer() { int idx = 0; int tokenCount; String input; String inputArr[] = …

Member Avatar for hatux
0
212
Member Avatar for NewOrder

i want to make a java game . where can i start. i am intermediate at my java (i know threads, swing, generics).. do you know any websites or sources of information that provide project ideas and info on how to create games?

Member Avatar for NewOrder
0
133
Member Avatar for nlanka

I am having a problem with displaying statement remove or not removed if letter is r

Member Avatar for Taywin
0
81
Member Avatar for fender422

My assignment was to make a game called 'World of Warcrap', and I finished, but there are errors. the errors are in respawnNPC(), attack(), and fightToTheDeath() methods. here are the instructions on what each methods are suppose to do: 1) Define the respawnNPC method inside the WorldOfWarcrap class such that …

Member Avatar for kramerd
0
186
Member Avatar for honeybunch16

[B][/B] *hi there guys im new in this forum...i need your biggest help in my project....in java here's the input and output...:* Passing Score: 50% Input: Raw Score Output: Grade 74-below : Sorry you failed! 75-80 : Keep up the Good Work! 81-85 : Good Job! 86-90 : Great! 91-95 …

Member Avatar for javaAddict
-1
172
Member Avatar for aro_kai

i am doing a project on barcode reader . i have just started it with a class pixelgrabber to grab the pixel,i mean grey value. And now i am confuse about how to distinguish the barcode part from other part of picture. plz suggest..

Member Avatar for Taywin
0
76
Member Avatar for koduruabhinav

what is the difference between the two String strHello2 = “Hello”; String strHello2 = new String(“Hello”); i have learned stings are immutable in java what does it mean? differnce between instance and class variablea and methods(in clear) pleae try to answer me.

Member Avatar for Taywin
0
101
Member Avatar for ceyesuma

Hello. I have an app (JDesktop) and it has the JMenu and some JMenuItems. One will build an JTabbedPane with a dozen or so tabs. I start that one and it works good. Another MenuItem builds another Internal Frame with JtabbedPanels it works too. When I go back to the …

Member Avatar for ceyesuma
0
142
Member Avatar for famida11

how to do validationn of textbox for the following in swings using netbeans 5.5 1)only character 2)only number 3)only date 4)length of the text entered

Member Avatar for cale.macdonald
0
63
Member Avatar for koduruabhinav

hi,i was a beginner in java i have a doubt. we use import to use the predefined classes. we can also use package for importing classes. import java.lang.*; package java.lang.*; [B] what is the difference between imports and package at what time we have to use differently.[/B] plese try to …

Member Avatar for koduruabhinav
0
131
Member Avatar for manaila

Hi I'm new to Java and I was dealing with the creation of packages. Suppose I have the following two source files which I want to put in one package called [B]mypackage[/B]. The two source files are in the (Linux) directory: [B][I]/home/user/workspace/mypackage[/I][/B]. [CODE] package mypackage; public class HelloWorld { public …

Member Avatar for Shanki87
0
136
Member Avatar for joss23

Create an array of Strings, each containing one of the top 10 reasons that users like in programming with Java as listed below. Prompt a user to enter a number from 1 to 10, convert the number to an integer, and then use the integer to display one of the …

Member Avatar for joss23
0
105
Member Avatar for ilamathip

Hi I am new to java.I want to know the internal process during the conversion of source code to byte code and to native code in detail. Can anybody explain me that with clear architecture? Thanks & Regards Ilamathi P

0
138
Member Avatar for riahc3

Im wondering how do I correctly generate a random number in Java. Sometimes it gives me a negative, positive, very small range ,etc. Id like a simple formula that can give me some examples to control this better. Thank you very much.

Member Avatar for tong1
0
155
Member Avatar for LianaN

Hi! My purpose is to fill the JComboBox from the database. The code shown below is working - it fills the JComboBox. However, the problem is that when I click on JComboBox to select some item, the error occurs. As I understand, String is casted to Object, and this is …

Member Avatar for LianaN
0
242
Member Avatar for vishalonne

Hi Everybody I am trying to write a small game in Java. I have done few things. But now I want to add some more feature in it. I am creating Enemies in Game.java using UI.java and EnemyShip.java. Now I want [B]to determine how many enemies to create[/B] [COLOR="Red"]the number …

Member Avatar for JamesCherrill
0
171
Member Avatar for tchild

Hi, I'm working on a project where I have two classes, Divisions and SalesStats. I need to read in a text file from a method in SalesStats and store that data into two dimensional arrays to Divisions. When I execute, only 0.0 is coming out and not the numbers from …

Member Avatar for ceyesuma
0
123
Member Avatar for JuanKawada

I'll first give you a basic overview of my task, I'm working with Deterministic Context Free Languages. It's not really important if you don't know what that is, I've got that covered. I just need help on developing an algorithm. Basically I'm given an Axiom, which is my starting string, …

Member Avatar for JuanKawada
0
164
Member Avatar for foxytease07

I have been trying to work on this for awhile now and this is the last part of 9 that I have to do for my project and I have come close but I just can’t figure it out. What I have to do: There is a banner ad at …

0
42
Member Avatar for muraj

Hi I'm trying to draw a line in java using g.drawLine g.drawLine (int, int, int, int) || x1, y1, x2, y2 im trying to draw this : g.drawLine (xCenter + 200 * Math.cos(2 * Math.PI * 3 / 7), yCenter + 200 * Math.sin(2 * Math.PI * 3 / 7), …

Member Avatar for muraj
0
106
Member Avatar for sariberri

So my assignment is to create a function in Java that takes out duplicate characters from the string. The catch is that it need to be done [B]recursively[/B] (no loops) and it must start like this with one parameter where the string is passed in. Please help guys I've been …

Member Avatar for SasseMan
0
729
Member Avatar for kdott

I've got a program that is supposed to mimic a music playlist by implementing a circular, doubly linked list. However, i cant use java's LinkedList, i have to write my own linked list. I have a DblListnode class to keep track of the nodes (show below) [CODE]public class DblListnode { …

0
121
Member Avatar for insanely_sane

Ok... So I have the following program: [CODE]public int seq2 (int n) { if (n <= 0) return 1; else return seq2 (n - 1) + 2 * n - 1; }[/CODE] It gives the following output: 1 2 5 10 17 26 37 50 65 82 So that means …

Member Avatar for insanely_sane
0
185
Member Avatar for iraqi4life

I'm calling to a method, from a method And I have this code: [CODE]public int ValidateInfo () { return this.day = 1; this.month = 1; this.year =1900; } [/CODE] However, on the 'Month' line, it is saying that I need to delete it, Why is this?

Member Avatar for Zhoot
0
77
Member Avatar for dnmoore

I created a java program to calculate a persons BMI, but we have to convert the weight from pounds to kilos and height from inches to meters using the numbers in my program, but it just doesnt worl the way its suppose to can some PLEASE help me figure it …

Member Avatar for princeandzoe
0
419
Member Avatar for hatux

The following code is part of a searchengine the specific piece of code sorts out the different searching options. While running it i get the catch (Exception e) error [CODE] import java.util.*; public class ObtainKey { public static void KeyAnalyzer() { int idx = 0; int tokenCount; String input; String …

Member Avatar for hatux
0
173
Member Avatar for Kerrai

Good Evening I have been stuck for a while now while trying to figure out how i can keep my ArrayList sorted when it receives new input. I tried the collections.sort(scores) but i get a error saying "Bound mismatch: The generic method sort(List<T>) of type Collections is not applicable for …

Member Avatar for JamesCherrill
0
3K

The End.