31,001 Topics

Member Avatar for
Member Avatar for blackrobe

Hi there, I'm writing a function to compare strings from two lists, but I'm facing problems comparing the two strings in an easy straightforward way due to my lack of knowledge in Java. I use Python more often which is way easier than Java in string manipulation and comparison. My …

Member Avatar for JamesCherrill
0
140
Member Avatar for xlx16

hi guys i have a couple of Qs. 1.what is javadoc and how it works? 2.what [B]Strong typing[/B] means? 3.if we want to control the input ,it is better to use exeption handeling (try chatch),or a single is to control the worng input, whitch one is faster? 4.look at the …

Member Avatar for stephen84s
0
141
Member Avatar for hatemstar

Hi Everyone , Here JApplet Example of my own coding , I have do this for My first Assignment on Java Programming Course .. The Idea of Assignenemt is to Allow the user to enter the number of days that he want to collect it's Temoreature .. Then It start …

0
66
Member Avatar for peanutmeister

I am having a problem with my code (see below). The problem is with the line whitePiece[0].setX(boardSquare[j].getX); and the one below it (towards the bottom). Can't I use whitePiece[] and boardSquare[j] as variables? I can't figure out how to write this any other way. boardSquare is a variable from another …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for retrob89

Hi, I've attached the code I have that deals with allowing a user to have access to the main menu. When adding a new user, the username and password is saved to a text file. However, I want to add a default username and password so when a user runs …

Member Avatar for BestJewSinceJC
0
150
Member Avatar for peedi

hello im kinda of stuck doing a project for my class. ik really need help with number 1, and 4. please help! here is what i have to do. 1. Use the charAt method to get the first character in firstName and store it in a variable called firstInitial (you …

Member Avatar for peter_budo
0
1K
Member Avatar for ceyesuma

[I] Name: [/I] The name of this question is bundled_resources [ICODE] Hello and Thank you in advance for any assistance. [/ICODE] [U] [B] Purpose: [/B] [/U] [B] The purpose of this code is to change the label of a commandButton by hijacking the resource bundle functionality and setting the label …

0
37
Member Avatar for redZERO

Hi I am having problems with BufferedImage. What i would like to do is create a bufferedimage from an image stored on the hard disk. For example, i create a new file pointing to this image file. From this I would like to create a BufferedImage.

Member Avatar for peter_budo
0
65
Member Avatar for ceyesuma

[code] [/code] Hello I have a couple classes here and a resource bundles and a JSF that sends the key to the class (MessageProvider) and MessageManager.java gets the resource for the selectOneMenu component label. I would like to change the label on the submit button depending on the choice from …

Member Avatar for ceyesuma
0
98
Member Avatar for kiel19

I have a stand alone application In Vb that I would like to redevelop it using Netbeans such that it can run in server based environment. The Objective is to have it run on a network where I have clients who work from different stations but printing and storage of …

Member Avatar for c0dex
0
113
Member Avatar for charlie81

I know I am missing something when I try to run it it says that it doesn't contain a main type. I am probably missing something really easy but here is what I have. public class Cube { public static void main() { double height = 3.0; double cube_volume = …

Member Avatar for javaAddict
0
88
Member Avatar for manfosys

Hi im new to this forum.I need to extract specific html tag data from html webpage using java.for ex from <img src="http://google/sample.jpeg"> this tag i extract only [url]http://google/sample.jpeg[/url] by using java.similar to all html tag.Plz give sample source code. Thanks in advance.

Member Avatar for sillyboy
0
101
Member Avatar for AntMastr

I am having trouble starting a program that needs to sort arrays. I need to have the user input the number of employess -which will set the number of arrays, then the user will enter differnt values into each array which should be private, such as name, age, salary, number …

Member Avatar for stephen84s
0
81
Member Avatar for eD_2525

Hey Everyone! My name is Ed and I am new to programming and your community. Thanks for the warm welcome and I hope you can follow me with my coding problems. My code is for a project that simulates a simple vending machine. When the program is run three buttons …

Member Avatar for BestJewSinceJC
0
702
Member Avatar for c0dex

Hey all, for quite some time I've been working on an inventory management program for work, and I'm having a bit of an issue with the rendering of a JFrame notification window, I'll do my best to explain below (including screenshots). So my program works with a remote FTP server …

Member Avatar for JamesCherrill
0
170
Member Avatar for charlie81

I think i have everything write except for the Input statements. It is telling me that JOptionPane can't be resolved. Here is what I have so far. public class Main_Class { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String firstNumber; String …

Member Avatar for charlie81
0
181
Member Avatar for hell_tej

Hi Folks,:) I am a new Programmer in NetBeans. I ma creating a [B]Desktop Application[/B] in NetBeans 6.0. Almost my Whole Application is Completed. now my Customer Request me to get Authorisation Access(Password Window) at the Startup of Application. :S Now The problem is that i can't create a JFrame …

Member Avatar for hell_tej
0
264
Member Avatar for Q8iEnG

Hi guys.. I don't know if this is the right forum for my question, but.. I have a question from 13 questions I solved them all, and I just got stuck on this one "4. Consider the following advances. Decide whether each of them attack the essence or the accidental …

Member Avatar for Q8iEnG
0
169
Member Avatar for redZERO

Hi, I just wanted to ask for some help considering images. What I would like to do is take an image and then split it up into blocks of a certain dimension (say, 20x20). Then I would like to put these blocks into a 2D array. I tried searching for …

Member Avatar for hell_tej
0
165
Member Avatar for KraZy-Yhan

hello everyone can u help me solve my problem... i want to call a class in another class but i dont know how..example. [CODE]public class Example{ public static void main(String[] args){ int x; for(x = 0; x< 10; x++){ System.out.print(x + " "); } System.out.println(); } }[/CODE] and i want …

Member Avatar for hell_tej
0
77
Member Avatar for youngstorm

Hello all, I have a program running with this command 'jdb prog'. It was compiled with 'javac -g prog.java'. The program when running normally asks for input, 1st it asks for a number then it asks for a second number. When running in jdb it still asks for input so …

Member Avatar for youngstorm
0
869
Member Avatar for navinlearns

[B]What i need to do is with the help of Sockets in java,: If a client requests for desktop view of the Server the Server code should then take screenshots one after the other and send it to the client and the client will display one as soon as the …

Member Avatar for BestJewSinceJC
0
112
Member Avatar for Lilal

Hey all, I'm having problems with a project I'm doing, I've started rewriting a project I'm doing as I ended up using too many arrays instead of classes >.< And running into some silly problems: Everytime I run the program I get this error on compilation [COLOR="red"]java.lang.NoSuchMethodError: main Exception in …

Member Avatar for BestJewSinceJC
0
105
Member Avatar for deep2sky

hi i am doing BCA and for MAJOR PROJECT i want to make a game in like PING PONG. if anyone can advice me the language that would be easy for it to make??. i am prefering JAVA

Member Avatar for stephen84s
0
72
Member Avatar for paradox814

Is there a way to change the color of the text in a JTextArea? I want to change all the text color to one color (other than black) and I just want to know how to do this. I see a lot of methods involving color but they only effect …

Member Avatar for carnado2008
0
1K
Member Avatar for sumanbabu
Member Avatar for bebe11bebe

[CODE]public class Election { private Voter v1; private Voter v2; private Voter v3; public String winner; int myTotal = 0; int hisTotal = 0; public Election(double pa1, double pv1, double pa2, double pv2, double pa3, double pv3) { for(int i=1; i<=3500; i++) v1=new Voter(pa1, pv1); for(int i=1; i<=3500; i++) v2=new …

Member Avatar for verruckt24
0
96
Member Avatar for nandomendoza

Would anyone be able to help me fill this code in. I have to ask the user for 2 playing cards. for example 7c(7 0f clubs). then at the end I have to compare the suit and print which card is the higher suit. I have the code outlined on …

0
66
Member Avatar for olgratefuldead

I have the following in a dat file: Obe 20 12 15 20 -1 Twitter 16 12 18 19 -1 Karah 30 15 12 3 30 -1 Cappy 12 12 13 15 14 -1 Monkey 17 16 15 14 14 -1 I am trying to write a Java program to …

Member Avatar for olgratefuldead
0
191
Member Avatar for nour-n
Member Avatar for Ezzaral
0
35

The End.