32,199 Topics
| |
Public final static Boolean FALSE=new Boolean(false); Public final static Boolean TRUE=new Boolean(true); what is the meaning of above two statements? | |
So I have these nodes I'm trying to sort as such, but it's not working. This is psudo code: Node first = new Node(23); //previously construted node [code] put method(newNode) { Node traverseInOrder = first; while (newNode > traverseInOrder) { If (traverseInOrder.successor != null) { traverseInOrder = traverseInOrder.successor; } else … | |
Hi, I commented every method of my source code using javadoc tags. But I noticed the private methods/variables do not show up in the api documentation. If I change the access modifier to public then they show up. I was wondering how to make them visible (without declaring them as … | |
Hi guys, The following program works the way I want it to but there's one small problem; when it loads, it doesn't give a blank frame. It want it to show the output after I click on the blank area. Help me please. [CODE] import java.awt.*; import javax.swing.*; import java.awt.event.MouseAdapter; … | |
Hi Guys! Can you kindly run this code in your PC and see if are getting the correct output.... maybe there is something wrong with the path variable etc in my system... thanks I want to print numbers from 1 to 10 using two different Threads. The code below is … | |
Ok so I have a couple questions on JavaFX. I have three javaFX scripts all of which contain their own scene and stage. However, I want a main class or script to decide when to open and when to close the current stage. So for example, the user will be … | |
Hi: I need help with a program. Basically, I have a sentence, which I need to distribute into blocks of 5 letters, and then scramble the blocks in an order which I determine. Here is the exact question: "Fixed period encryption- Given the number d and the numbers 1 to … | |
please if someone can help me i have probleams in the constructor of the class, how can i pass parameters to date constructor..... | |
Hello everyone, My name is Santiago and I am a 24 years old java developer from Mexico City. I am kind of new in the 'professional' level. I have been developing software as a job since february (I graduated in december) in a company dedicated to provide services to finantial … | |
Hola a todos, Estoy tratando de escribir un servidor de mensajerÃa entre clientes, en Java. El problema que tengo es cuando quiero terminar el servidor. El servidor que he pensado funciona asÃ: Cada cliente se conecta a un hilo que crea el servidor y allà envÃa los mensajes. El problema … | |
Hi, i'm working with Netbeans IDE 6.7.1 on Vista Home Premium. I have run my program with no errors, but the phone won't show up. I have turned off my firewall and even tried reinstalling Netbeans with no success. Thx in advance! :icon_smile: | |
Is there any other way besides Jawin to call Win32 API methods from within Java? I have the option of using C++ as im going to be using the API a fair amount however i'm also doing GUI stuff and i would prefer the Java GUI features over C++. If … | |
Hi, I am trying to create a button group which can give me both Jcheckboxes as well as Jbuttons. The problem is that I am creating a button group and not able to fit the checkbox criteria into it. Actually I want to create 2 radiobuttons followed by one checkbox … | |
Dears I need some help regarding a software development for P2P file sharing application. I need guidence in this regard. The application must contain PEER DISCOVERY, FILE SHARING, FILE TRANSFER, DOWNLOAD AND UPLOAD FILES, SEND AND RECIEVE MESSAGE AND MAINTAIN HISTORY. PLEASE GUIDE ME FROM WHERE I SHOULD START ALSO … | |
Hi guys, I need to display "Java Mug" (in red) inside the mug I created in the following code. I spent hours working on it but couldn't get anywhere. Can you guys help me please? [CODE] import java.awt.*; import javax.swing.*; import java.awt.geom.*; public class DrawJavaMugTest { public static void main(String[] … | |
Hello, I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main … | |
I have created a linked list in Java, and now I am trying to convert my program to C++. When I try to compile, it gives me the error saying that 'next' uses 'CarNode' which is being defined. I am wondering if there is any way around this? Java: [CODE]public … | |
How do I connect, wirelessly, to a localhost on another PC? I have not problem with "jdbc:mysql//localhost/databasename" but I can't figure out on another PC, named "PC2". Thank you. | |
Given this client [CODE]/* Test of * Constructor with 2 arguments * drawLine * setSize */ public class BoxesClient5 { public static void main(String[] args) { Boxes alphaBox; int i; System.out.println("Result of various calls to drawLine:"); alphaBox = new Boxes(7, 'a'); for ( i = 0; i < 5; i++ … | |
hi friends I am trying to implement a SAAS based sample application in my final year project. But I do not know where to start and what is needed to build it. Kindly if anyone knows about it please help me Thanks | |
heey all ,, I'v a question about the pow ,, but when I run the programe it didn't work =S I really need help because tomorrow I shloud give it to my teacher,, ******************************************** import java.lang.Math; public class ques3 { public static void main(String[]args) { static Scanner console = new … | |
[CODE]/* * CensusCalculator.java * * Computer Science 111, Boston University * * This program performs various computations on census data stored in a text file. * It uses arrays in several ways, including for storage of the results of * the computations. * * modified by: [Daniel Sutton (dan13@bu.edu)] * … | |
Hey guys, im about to write an application which has a visual GUI doing representation of a system (lots of pretty colours and flashing objects etc), which represent what is happening with packets and external devices being inserted into the system. I need to use one of the Win32 APIs, … | |
Hello, I was just wondering if it is possible in Java to get the host's IP address, as seen on the Internet, not network or by the computer itself. I mean, getting something like [B]87.253.145.35[/B] instead of something like 192.168.1.100 or 127.0.0.1. Or, if not, is there any popular/known server … | |
I want to create a data file(.txt) with the data in a mysql table. (of course i did that) [CODE] try { // Create the statement //Export the data String filename = "test.xls"; String tablename = "test"; c.getData("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); System.out.println(filename); … | |
I'm trying to split an input string into an array of substrings and currently trying something like this... [CODE] public static void tryp(String inputString){ int index = 0; String[] rArray = new String[1000]; String[] kArray = new String[1000]; int startPos = 0; int x; int newRPos = 0; int newKPos … | |
This program is suppose to merge the two files by taking one element at a time from each, and the third file should contain the numbers from both file from lowest to highest. Data1: 11 25 36 45 56 78 90 Data2: 1 3 5 7 54 32 78 99 … | |
hi guyz and GiRlzz (F) ;; how R u ? plllz I need 4 helpping from u !! I've a Q in Java ,, I'm trying to write it in jGRASP but I can't :s plllllzzz hellp me before next Suterday ;s this is my Q 3.Write expressions to compute … | |
im a astudent @ LTHS, in my forst year of Java, how do i make a default, and non-default contructor, and how to they work? | |
hi, i need to build a VOIP client using Java technology...so do i need to code the server as well or is there any free VOID servers available?please give any suggestions regards, don |
The End.