32,204 Topics
| |
HI im a student and our professor asked us to convert a number into word: example: input= "1" output="one" i need to have numbers from 1-10,001 so my program will end up very long if i only use if else statement i know that there are other methods other than … | |
guys i cant understand or even think of how i can start my program. I should input a number and convert it in words ..its so hard for me to understand how to do this because like what i have said im NEW here thank you so i need to … | |
help guys! i got an error stating within this line "unclose string literal" System.out.println("Balance at the Month " +count+ " is " +Balance+ " after making a payment of " +RepaymentPerMonth"); But i cant suss it out! please get back to me cheers! | |
Hey so I have create a class FunWithIntegers. Add a method to the class called GreaterThanFive. Have that method accept an array of int. The method should allocate a new array that contains only the values from the first array that are greater than 5 and return it. [CODE] public … | |
i want to make random numbers for x[row][col] that row =10 and col =10, but my problem is: how i fix random numbers of n[col]=5; here is my code: public static void main(String[] args){ double[][] x= new double[10][10]; int row,col; int n[]={0,0,0,0,0,0,0,0,0,0}; for(row=0; row<10; row++ ){ for(col=0; col<10; col++){ if( … | |
Hello, Here I have a problem, I want to print the word after the Delimiters in a simple text file, but i cant able to do it also cant able to find a good example for that in a web. So please if anyone help for this. | |
How do strings work? In C we must declare the size of a char array to represent a "string". But in java we do not allocate memory for the size of a string. So how does the string work? Is there a pre deterimed size assigned to strings from the … | |
| Hi everyone, I hope you can help me with this. I have everything in my code working properly except for the fact that the payment amounts are being displayed in the command window and I need to display them in the text area, as well as adding scroll bars to … |
Hi, I'm trying to make a simple calculator. I don't know how to make the display screen and my buttons are not aligned properly. [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.event.*; public class Calculator extends JFrame{ private JButton btn0 , btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, … | |
As part of our exam project we need to write a GUI in java, the problem is that the structure has got us stumped. I'm not asking you to do our work, but if someone could nod us of in the right direction it would really be appreciated. We want … | |
I have the following code and I want to move from one button to an other depending on the roll of the dice,for example if the dice rolls 5 i want to go to (1+5) six and to put a diferent color to it and so on.Can you help me. … | |
Hi everyone! I'm experiencing some trouble with a fairly simple problem I guess. First of all, I'm not a real expert when it comes to java, but I would like to learn it mostly by self study. And I'm sorry for the lots of code, but I can't really specify … | |
Hi guys I have a bit of a problem here about the alignment no what I try it always end up like that, the 2nd-3rd row course and sexcode column is what I want to fix >.< package studlist; here's my code: public class StudList { public static void main(String[] … | |
I wanna know what type of parser is used in the javac compiler. whether a top-down or bottom-up parser is used..... ? | |
I have a program that reads from a database, and then displays the results in a TextArea. Then when the user hists upload the file will be saved to a .txt file, and then uploaded to the database. But currently I am getting the original which looks like this in … | |
I have created an XML schema that holds flights and i want to use to be able to create an XML document that contains all the flights. However, i can only write single flights to the XML file. So can anyone tell me how i can add multiple flights to … | |
Im writing a java system for some one, and no contract has been established so far. Im just wondering, if i dont sign any contract, to whom does the source code of my project belong to? Is it mine? do i sell it to him? does he just get it? … | |
How to add three jtables to a single jscrollpane. JScrollpane.add() function doesnot show jtable header. | |
I've created a class called PrintableReport that uses Java2D to paint a report from a database table to the screen. The user can then click the PRINT button to send the report to the printer. However, the printed page's formatting is not consistent with the onscreen formatting. In particular, class … | |
Im reaaly starting to hate netbeans... its like it changes my code for me!!! I use java mail to send emails. Now i got it to work a few days ago. already imported the api, and what have you (images attached). And i was able to send emails, and today … | |
| Hi again all. Having continued with my project I have managed to finish my [I]Board()[/I] which is where my main game occurs. I have also created a main menu which is instantiated from my [I]main()[/I] method and appears as soon as the program is run. My current problem is invoking … |
well,the title says it all. What are the disadvantages and advantages? Is it better to compile java in ms-dos or in IDE such as eclipse(which is popular as they say). Which do you prefer? | |
Hi, Is it possible to call OSGI service implemented in external bundle from EAR package? Is there a tutorial how this is implemented? Regards | |
Hi, I'm new to java, I'm using netbeans, I create two tables, master table and detail table, detail table has a composite primary key, one of the primary key refer the master table's primary key, when I created a desktop application, the detail parts only show the columns which are … | |
hey!tell me that what is difference between info contained in cookies and session(made in web container) ? let i have opened a website and done something in it and then i opened another site and do something on it. then tell me what is the info cookie is containing and … | |
I am trying to create a countdown timer using the javax.swing.Timer class. In order to display it I am only allowed to use javax.swing.JFrame and javax.swing.TextField classes. Well my Timer works as I expected. But I have trouble when I am trying to display it in the JFrame. It appears … | |
hello guys, ive been searching for ages on how to disconnect a client whether the request is from client or server but i cant find one. I thought the Naming.unbind() would do the trick but its not. anyway, this is my server code since I want to have my server … | |
This must be the Most Irritating Bug or what ever it is, EVER!!!! Im using Netbeans 6.9.1 and i have a main form, with a JMenuBar (dropdown bar) in that form. Now i have allot of items in that bar. But netbeans chooses some random time to remove 1 to … | |
Hey Everyone, I just have a quick question... does anyone know how to test 2 integers (int a, int b) to see if int a is evenly divisible by int b? I tried it like this but it doesn't really seem to work: [CODE]public boolean isDivisible(int a, int b) { … | |
I was making an item for a game im modding, but it cant seem to read the variable and perform its function. Yeah, it recompiles fine, but dosent work ingame The functions that dont work ingame, are -Printing A Chat Message To An Entity -Setting Variable Timesshot to 0 -Damaging … |
The End.