35,618 Topics
![]() | |
hi, I developed one web application and I have created div in JavaScript and on that div I have created more than one images and when I click on save button i want to save all images on to the database and when I retrieve that image from database as … | |
good evening ppl and happy new year! i am developing a hotel booking app with web services on netbeans. i use soap technology jdbc drivers. the booking methods are ready and are coded in hava. now i want this app to make it on a page (jsp) with buttons and … | |
I am making a voice recognizer for my media player so as to stop and play the song through my voice .I tried to run a demo program given in the sphinx src through command prompt .I have also used apache ant to build sphinx pgm .when irun the demo … | |
Hi All I need to know about how can we convert a PDF file to HTML file using java....If any one is having a source code post it.Otherwise suggest me how to do the task... Thanks in Advance...:) | |
So basically I have to write a simple calculator, that fine and I did it. The only problem is it can only operate on the 2 numbers which the user puts in. I want to make it like a real calculator that you carry around in your pocket. Example: "Calculate: … | |
is there a way to remove the windows key effect on the local machine, so that my program doesn't minimize? I have tried an empty if statement, but that didn't do anything. Thanks for any help. | |
I need to prevent entry to a car park system during public holidays, but instead of making more classes i was hoping it could be done within my existing method. my question is, is there such thing in java that already has public holiday dates predefined and can be used … | |
since i cant figure out the right thing to do.. i will just have to ask how to use array, what is its purpose and some examples! thank you guys | |
[B]Hi guys Whenever I run this program, some weird characters like: ([/B] [COLOR="Green"][I@1f436f5[/COLOR] [B]) appear.[/B] [CODE]int[] list= new int[3]; Scanner scan = new Scanner(System.in); for(int i=0;i<list.length;i++){ System.out.println("Enter a number:"); list[i] += scan.nextInt(); } System.out.print(list);[/CODE] [B]How can I fix this? It is supposed to print the numbers entered from the user … | |
Hi In my Project,Struts actions uses services where services are all interfaces. However i do not have the implementation of the services developed yet. From googling i understood that mocking would be a good idea, but mocking is only done in unit testing. I want to use these actions in … | |
I'm trying to create 10 files with random names and random data. Each line in the file consists of two integers and represents one "record". Naming the files and generating random data didn't turn out very difficult. But for some reason I fail to recognize, while I create 100 records … | |
i'm a beginner for coding at java . net now i got a problem with input the port plz see the code [CODE]package test; import java.net.*; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPCliet { final int buffSize = 10001;//buff size final int TIMEOUT = 3000; final … | |
I have using following code over jdk 6.0 but after first round it doesnt work .... [code] if(table.getRowCount() -1 == table.getSelectedRow()) table.editCellValues(0,columnno); else table.editCellValues(table.getSelectedRow(),columnno); [/code] These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... … | |
i'm trying to write a code that masks red and blue channel from the image inputted.I have retrieved r,g,b values but however stuck up in proceeding further.I'm just a beginner.Can anyone help me in this please? [CODE] public class Green { public static void main(String args[]) throws IOException { BufferedImage … | |
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. | |
[CODE]<html> <head> <title>Pie Chart Demo</title> </head> <jsp:useBean id=[COLOR=red]"myChart"[/COLOR] class=[COLOR=red]"classes.beans.votepie"[/COLOR] scope=[COLOR=red]"session"[/COLOR] /> <body> <h2>Vote Results Pie-chart</h2> <%String chartViewer = myChart.getvoteserve(request, response);%> <img src=[COLOR=red]"<%=chartViewer%>"[/COLOR] border=0 usemap=[COLOR=red]"#imageMap"[/COLOR]> </body> </html> [/CODE] accessing this above viewrst.jsp file shows the following error: [CODE][B]HTTP Status 500 - [/B] [B]type[/B] Exception report [B]message[/B] [B]description[/B] [U]The server encountered an … | |
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 … |
The End.