32,204 Topics

Member Avatar for
Member Avatar for lanario

I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous …

0
82
Member Avatar for wsafdbv

For a major simulation project in our lab, we are receiving a series of integers from the lab equipment (note: we usually have in excess of 100 numbers per simulation). These numbers represent some actions of an ant colony. We need to return the number of elements in the largest …

Member Avatar for Phaelax
0
124
Member Avatar for tripnip

I'm completely new to Java, and programming in general, and I'm trying to do something that I thought would be simple but I'm stumped. I probably did something wrong thats obvious to other people but not to me. I'm trying to display a GPA after you put in the grades, …

Member Avatar for tripnip
0
203
Member Avatar for Lunaticrr

This is my code: import javax.swing.*; public class Two { public static void main(String args[]) { JOptionPane.showMessageDialog(null, "Computers, computers everywhere\n As far as I can see\n I really , really like these things,\n Oh joy, oh joy form me!" JOptionPane.WARNING_MESSAGE); } } I am trying to make the text appear …

Member Avatar for Lunaticrr
0
122
Member Avatar for tomkeys2006

Hi Guys, wonder if any one can help?? I have been asigned some home work to make a CaesarCipher class, listed below, where by there is a test class below which would need to be passed to it. I have figured out the first bit but cant debugg and get …

Member Avatar for server_crash
0
110
Member Avatar for Lunaticrr

I have downloaded the J2SESDK and installed it. It is the bundle pack that comes with NetBeans. However when I run the installation only the directories for the 2 are created and there is nothing in there. I haven't a clue if thats supposed to happen but I'm guessing no. …

Member Avatar for Lunaticrr
0
130
Member Avatar for Dani

When using a third party ad server, do you use the IFRAME or JavaScript method? Usually the JS method is more robust and offers more features, but it can slow down page rendering times. Currently struggling with this battle right now.

Member Avatar for Dani
0
130
Member Avatar for soso30

I like to use sql procedure to java code how i connect it to my project please send code to be more obvious

Member Avatar for aniseed
0
64
Member Avatar for tdoggrme

I wanted to know if anyone know how to get the length of digits, like if the user enters 12345 the computer will return 5 because the length is 5

Member Avatar for hooknc
0
732
Member Avatar for jigvesh

Well i am pretty confused between the three,,,,i tried going through the java forums [url]http://forum.java.sun.com/thread.jspa?threadID=583383&messageID=2981007[/url] and [url]http://forum.java.sun.com/thread.jspa?threadID=671804&messageID=3926799[/url] but just couldnt make out anything.......Could someone please explain it in a bit simpler terms.....Thanks a tonne :)

Member Avatar for server_crash
0
287
Member Avatar for buggytoast

Hey guys! :D My program implements the vector class however it only shows I know how to use the Vector Class, and not how to develop a code for a linked list :( My teacher says I can just do a copy paste job, which is precisely what I did. …

Member Avatar for buggytoast
0
144
Member Avatar for dgrblr

I have tried every avenue I can think of, but this forum seems to be the best to supply help. I am creating a class using NetBeans. I have created the following code, but get an error message for the line "public static Connection getConnection (String strFileName, "","") throws Exception. …

Member Avatar for dgrblr
0
927
Member Avatar for renick_j_v

i am doing a chat client server program.. i have a doubt in retreiving data from a applets textfield and passing into the stream. send some code if possible......... renick...

Member Avatar for Phaelax
0
120
Member Avatar for gagirl14

I don't know why I'm getting this return statement :sad: Please help. Error is in green public class Card { private int rank; private int suit; public Card() { suit = (int)Math.floor(Math.random() * (4-1) + 0.5) +4; rank = (int)Math.floor(Math.random() * (14-2) + 0.5) +14; } public Card(int r, int …

Member Avatar for malaya_champ
0
109
Member Avatar for lev_arris

Hi guys, I'm currently making a GUI which displays a graph. At the moment it reads coordinates within an array in the code: public int datax[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public int datay[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, …

Member Avatar for iamthwee
0
140
Member Avatar for Phaelax

I want to add theme support to my program so that users can just download jar files containing a LnF and just drop it into an extension directory or whereever. I'll just scan that directory for jar files to see which are present. Is there a way search for a …

0
69
Member Avatar for iamthwee

Hello everyone. At the moment I'm compiling all my .java files in the same directory where the javac program is. I know this is a bad idea. How do I link it from the command line and let's say export the .class files to another directory of my choice. ThanQ

Member Avatar for chrisbliss18
0
145
Member Avatar for dgrblr

I have created two GUIs with netbeans. I simply do not know how to call them to display on the screen. I'm sure it's simple, but I must not be understanding properly. I created the GUIs as JPanels and all they have on them right now is some labels and …

Member Avatar for dgrblr
0
165
Member Avatar for buggytoast

Hi everyone! (it's been awhile XD) I've gone and done my homework. And here I am with a program that works...pretty well I think. There appears to be a problem with the saving/loading. Originally it worked without a problem, but when I attempted to make it more graphically friendly (when …

Member Avatar for buggytoast
0
143
Member Avatar for parvin1987

hello I,ve wrote a program but it doesn,t work correctly please help me i want to sort some strings based on the number that should be entered at first of each string for example the strings that you enter should be in this form: 12_hello it means you should enter …

Member Avatar for iamthwee
0
106
Member Avatar for moon_light

i am new here and i have this Q to solve it plz help me Using class stack, write a program to read an expression and checks if the symbols : the parentheses ( ), square brackets [ ] are balanced or not. For example : (a+b-[c+d)] is not balanced …

Member Avatar for iamthwee
0
111
Member Avatar for webmasts

Hi, I'm creating a palindrome program. So far, I got that part. Now, I need to find out if the length of the integer (string) is less than 5 digits. If the length is less than 5, then don't proceed with the program. Please give your suggestions. Basically, what I'm …

Member Avatar for iamthwee
0
318
Member Avatar for gokul

Hai all, I am new to all.. Currently i am doing a "Video Conferencing" project in Java which implements SIP and JMF.. but i didn't know how to interact SIp and JMF in J2EE..? could any one help me..? pls give the related informations or links.. Thanks Regards, Gokulakrishnan.M

Member Avatar for metamit
0
104
Member Avatar for osean

hi, i created a listbox[code] List list = new List(); list.addItem(".....:P"); list.addItem("...:("); add(list); list.makeVisible(1); setVisible(true);[/code] how can i make the listbox enabled (readable, but not disabled), so the user can't select anything from it? also, does anyone know of any good sites with full tutorials for beginners, for java?

Member Avatar for Dark_Omen
0
109
Member Avatar for iamthwee

How can I put this? Is generics only supported by the very recent versions of java? If so... Does that mean if I use it, it might not work for people who have older versions of the JVM, or java plugin or whatever it is?

Member Avatar for jwenting
0
102
Member Avatar for hbmarar

hi, It wud be great if any one of you could let me know or share with me a sample code or how to in finding out the intersection of two arcs and plotting it. I cud not find any useful info on the Net thru search Reqeust your concern …

Member Avatar for iamthwee
0
111
Member Avatar for bharatkaza
Member Avatar for Kiba Ookami

In VB we could export all the code and make a standalone executable file. I was wondering how you did that in java with console/jframe based programs? I understand that an applet would have to be in a pages HTML, but as for the other types of applications, how are …

Member Avatar for server_crash
0
87
Member Avatar for fdrage

which method in the ResultSet that will return the number of column in a table? I'm not entilry sure but i think its the getFetchSize() However on the API it says that : [QUOTE]"Gives the JDBC driver a hint as to the number of rows that should be fetched from …

Member Avatar for fdrage
0
110
Member Avatar for freesoft_2000

Hi everyone, I find something very odd. When i use the runtime class to run javac in 1.4.2 the console window does open but when i do the same in 1.5 the console window appears. Why is this so. Am i missing something? Yours Sincerely Richard West

Member Avatar for jwenting
0
184

The End.