32,204 Topics

Member Avatar for
Member Avatar for alanna

I'm writing a program that generates 5 cards, and I need it to tell me what type of poker hand it is. I really need help with this as soon as possible, so any suggestions that you could give me would be appreciated SO SO SO SO SO much. I …

Member Avatar for alanna
0
194
Member Avatar for vyk2rr

Ando comenzando en la programacion en Java, ¿Alguien sabe por donde puedo comenzar? O podrian mas omenso intruirme acerca de las classes de java teoricamente hablando :rolleyes:

Member Avatar for alc6379
0
178
Member Avatar for bright2000

there are 2 dimension arrays, how can print out the position of value than 4? for example 0 2 3 2 2 2 0 1 1 2 5 3 1 2 3 3 2 1 print out: The pos is ( 4,1).

Member Avatar for Phaelax
0
80
Member Avatar for MrScruff

Is there anyway i can get some labels and sliders to alignproperly when they are both using grid layouts attached to a border layout. Basically using one gridlayout for the lot meant that the labels had excessive space - so i opted for a border layout so the sizes would …

Member Avatar for jwenting
0
91
Member Avatar for grifflyn

Hi i have written a program to reconise palendromes in a sentance. I have written a method to reverse a word but dont know how to get the string tokeniser to reconise the words in a sentance. could any one give me some advice on how to use HasMoreTokens this …

Member Avatar for mcclth
0
179
Member Avatar for vrc_sekhar

hello everybody, ive devoloped an awt application in java, i want to call the paint() for drawing sytem time on a image through Graphics.drawString(String,int,int); now i want to refresh the time for each second by calling repaint(), but whats my problem is, each time i call repaint() the image i …

Member Avatar for mcclth
0
133
Member Avatar for alfageekwannabe

(I posted this last night & was told I should have posted it elsewhere - I hope this is "elsewhere".) Windows ME 4.90.3000, ie 5.50.4.807.2300 updates SP2; q834707;q867801; (at this moment) Seems to run very slowly (speed of computer probably) even though she has lots of ram. Using McAfee VirusScanOnline …

Member Avatar for alfageekwannabe
0
193
Member Avatar for ultimate_fusion

heres the start public class work { public static void main (String [] args) { int number = 1; } public static boolean ifstate() { if ( number == 0 ) blah blah } question - how do I get the second method to call on the varible from the …

Member Avatar for ultimate_fusion
0
142
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to print even or odd pages only. I have a frame which contains a jtextpane with some text in it that spans about ten pages and it also contains two buttons. One button if clicked prints out only even pages and the other button …

0
64
Member Avatar for sam1

hi i have been given this cwk for java programming. and i need help getting started. i dont want u to do it all but if u can help to get me started i would really appreciate it thank u. this is the task: A large car dealing company wants …

Member Avatar for sam1
0
107
Member Avatar for rick4324528

i have declared a static global integer, and have assigned it a value. I have then attempted to alter the variable from another method.(Using Classname.Variablename), but it will not work. Nor is it generating a scope error. Any ideas?

Member Avatar for jwenting
0
44
Member Avatar for mmr

Hi All, Can anyone help me out in figuring how we can open an Internet explorer in say "Borderlayout.center" of the frame.

Member Avatar for nanosani
0
41
Member Avatar for freesoft_2000

Hi everyone, I have a jtextpane with some text which spans to about 10 pages and what i want to able to insert page numbers into the center bottom of the page. I am using the DefaultStyledDocument class as the default document type for my jtextpane. I hope someone can …

Member Avatar for freesoft_2000
0
87
Member Avatar for depaolm

Dear all, My names its Max, and seems that I have some problems with JAVA coding. What I need to create its a GUI interface, from the code below. But I am having bad time because I am trying hard but I get always errors! It really frustrating, I do …

0
59
Member Avatar for rick4324528

How can i move between different methods with the same class. When i programmed in VB, it was just the name of the subroutine, but i cant figure it out in java. Please put me out of my misery

Member Avatar for jerbo
0
100
Member Avatar for ancibit

I get this when I try to load my program, yet the compiler says its fine. Please help! Exception in thread "main" java.lang.NoClassDefFoundError: PIStudy$DoPolyINTest at PIStudy.<init>(PIStudy.java:51) at PIStudy.main(PIStudy.java:121) [CODE] import javax.swing.*; import java.util.Random; import java.awt.*; import java.awt.event.*; public class PIStudy { public JFrame window; public JButton name; public JButton comb; …

Member Avatar for ancibit
0
136
Member Avatar for murphyshane

//.... int vals[] = new int [12]; vals[18] = 10; catch (ArrayIndexOutofBoundsException) { //handle error ... }

Member Avatar for jerbo
0
96
Member Avatar for murphyshane

> Q1. How does bytecode differentiate java from other languages such as C or C++? > > > Q2. What is the dfference between the simple type Double and the class Double? > > > Q3. what is the difference between > > > (a) A single character typed in …

Member Avatar for jwenting
0
100
Member Avatar for Ghost

Hi, I'm in URGENT need of anyone who can help me with the following TicTacToe code. When you run it, it lets you click a box. When you click a box, X appears. The, when it's O's player's turn, it will not print an O. [CODE] import javax.swing.*; import java.awt.*; …

Member Avatar for jerbo
0
87
Member Avatar for Chrysanthos

i'm asking from the user to add the length of the array signal and after that if the size of signal is greater than 2 i create a new array smooth which the first value of it is [code] smooth[0]= (signal[0]+signal[1])/2; [/code] the second till the last-1 is [code] for …

Member Avatar for Chrysanthos
0
94
Member Avatar for hayesmark

public class XClass { private int u; private double w; Public XClass () { } Public XClass ( int a, double b) Public void func() { } public void print() { } } XClass x = new XClass (10, 20.75); Q1. How many members does class XClass have? Q2. How …

Member Avatar for MrScruff
0
183
Member Avatar for aprillyn01

I installed and uninstalled sun java about 5 times. I have bought noadware, disabled my Firewall, and deleted caches, temporary file, and everything I could think of, but to no avail. I am running Windows 98, DSL with Internet Explorer. Please help me make my browser recognize my Java.

Member Avatar for js-x.com
0
104
Member Avatar for tigerxx
Member Avatar for mcclth

I am working on a program which creates an arraylist containg all of the cards in a 52 card deck and then randomly selects 20 of them. I would like to have the program display the images of the cards, but I lack knowledge and resoursces to figure out how …

0
60
Member Avatar for nevets56

I've created a program that counts the amt. of characters, words, and lines in a text file...I also need it to count the number of blank lines and the number of vowels in the text document. I don't know why, but I cannot seem to get it to work. If …

Member Avatar for mcclth
0
93
Member Avatar for Jackie001

Hi everyone. At the moment i am doing my thesis for my degree. The title is: "Compare and contrast Oracle client/server technologies with oracle web technologies. Design a business application and depoy it in both. " To compare the applications i am going to use java. I am going to …

Member Avatar for Jackie001
0
213
Member Avatar for freesoft_2000

Hi everyone, I have a textpane with some text inside( i am using the HTMLDocument class as the default document of the textpane) and need to publish the contents of this textpane on certain webpage([url]www.free.com[/url]) What i have also a button together with the textpane on a frame thus when …

0
56
Member Avatar for kendallniall

Public class Prog1 { static final char = BLANK = ` `; static final char ONE 5; public static void main (String[] arg); { a = one + 5; b = a + blank; cc := a + one * 2; ONE = b + c; System.out.println(''a = '' + …

Member Avatar for jwenting
0
165
Member Avatar for shantuli

hello, i just start learning java.please solve my following problem: Q: Write a simple program that allows a user to push up to ten names onto a stack as well as popping them off the stack. [B]my code is:[/B] import DataStructures.*; public class StackDemo { public static void main(String[] args) …

Member Avatar for jwenting
0
162
Member Avatar for agtmulder17

Hi, I am working on a project using Java and embedded SQL in the Java. I have gotten the SQL to successful do what I need it to (In this case, create tables and insert data into them). However, I am having a difficult time with IO. The goal is …

Member Avatar for jerbo
0
110

The End.