32,204 Topics
| |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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. … | |
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. | |
I like to use sql procedure to java code how i connect it to my project please send code to be more obvious | |
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 | |
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 :) | |
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. … | |
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. … | |
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... | |
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 … | |
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, … | |
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 … | |
| 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 |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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? | |
| 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? |
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 … | |
In struts can we write our Action Servlet? | |
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 … | |
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 … | |
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 |
The End.