32,204 Topics

Member Avatar for
Member Avatar for lakshay

Hi JavaExperts I have done few program in Java using Bit wise AND OR operator... But Not getting the proper output or May be I am doing something wrong Can any body explain why I am getting output class Bit { public static void main(String args[]) { System.out.println(010|4); } } …

Member Avatar for llemes4011
0
107
Member Avatar for George2

Hello everyone, I am looking for some approaches which can prevent my .class file being decompiled. My questions are, - I have heard that there is an approach called "obfuscated", I am wondering whether it is the best approach which meets my goal. If it is, where is the best …

Member Avatar for masijade
0
144
Member Avatar for manfosys

i wrote a code for download image from the website using URL class in java.The code is working fine.But the problem is after some time it shows- java.net.ConnectException:Connection timed out .Here i didnt use any proxy server and firewall.some sites gave soln as like change proxy settings or it is …

Member Avatar for manfosys
0
109
Member Avatar for sotvisal

import javax.swing.*; class Customer { int id,rate,pre,cur; String name,sex; String read(String n) { return JOptionPane.showInputDialog(n); } int readInt(String n) { return Integer.parseInt(read(n)); } void out(String n) { JOptionPane.showMessageDialog(null,n); } public Customer() { id=1; name="Visal"; sex="Male"; pre=13214; cur=13362; rate=720; } int consumption(int pre,int cur) { return(cur-pre); } int payment(int rate) { …

Member Avatar for kvprajapati
0
140
Member Avatar for vinaykumar1690

I recently downloaded the Eclipse(Ganymede) EE editor.I also downloaded the web application server community(WASCE 2.1) edition from IBM. I started off with a simple HelloWorld web application.i just displayed the msg in the default index.jsp page. When I deploy the application on the WASCE server the web browser is showing …

Member Avatar for sillyboy
0
422
Member Avatar for llemes4011

Hi. I have a Vector of Vectors that I need to rotate 90 degrees clockwise and 90 degrees counter-clockwise. I got it to rotate Clockwise, but whatever I try, I can't get it to rotate counter clock-wise. The 2D Vector is not always going to be a square. It will …

Member Avatar for llemes4011
0
293
Member Avatar for akulkarni

[code] i read that a method that is is using throws clause must be mentioned in the try and catch block.So when we use "throws IOException" in the following program why dont we use try and catch import java.io.*; class testthrows { public static void main(String args[]) //throws IOException { …

Member Avatar for akulkarni
0
106
Member Avatar for ndoe

anybody help me!! i have one tombol that tombol will be used to evaluate the explain!! i have some question with answer choise(a,b or c) with that tombol i want know if my answer true or false!thanks can you show me with a simple database and last question from me …

Member Avatar for peter_budo
0
119
Member Avatar for jooa

Hi, I am trying to write some code to insert coordinates which are taken from the mouseClick position and then added to a 2D array. The user should click 6 positions on a panel and these positions should be stored in a 2D array. I hope you can help. Thank …

Member Avatar for jooa
0
4K
Member Avatar for aveek

im trying to draw a curved line using mouse. there are three points on a straight line. a starting point, an ending point and a point in between. i want to draw a curved line by dragging the middle point in any direction. the other two points remain constant.

Member Avatar for VernonDozier
0
92
Member Avatar for VBNick

Hello~! ...again.. I got some help from you guys a while ago with this same app because it wouldn't run on winxp. It runs fine now, but my brother is still telling me he cant get it to work right...so rather than go through all the trouble of trouble shooting(he …

Member Avatar for Salem
0
255
Member Avatar for llemes4011

Hi. In my attempts to create an email client, netbean's GUI builder has made me very unhappy... so, I decided I'd rather code it by hand... not my best idea, but whatever. Now, I'm trying to nest a Vertical JSplitPane in a Horizontal JSplitPane, and I can't see the left …

Member Avatar for llemes4011
0
93
Member Avatar for rizillion

i need to how to give codings to buttons that are present in confirm dialog box. For Example if there are two buttons as "YES" and "NO" and if i click "YES" then the program should close. If i click no then th dialog box should return to the program. …

Member Avatar for peter_budo
0
163
Member Avatar for Web_Sailor

Hi, I am trying to create a HTTP file upload setup for a java application. So I have got a File Upload server which is working and a Client (I am not sure what changes I should do to make my Client code work with the server code) NEED HELP …

0
64
Member Avatar for mimsc

Hey Fellas...Im getting this error on a "select box"...im trying to parse some info: PWC6197: An error occurred at line: 88 in the jsp file: /jsp/cpanel/HomeSellerList.jsp PWC6199: Generated servlet error: string:///HomeSellerList_jsp.java:147: cannot find symbol symbol : method indexOf(java.lang.String) location: class java.lang.Object PWC6197: An error occurred at line: 88 in the …

Member Avatar for sillyboy
0
842
Member Avatar for CTUBren

I'm sure this is going to be really easy to figure out and might even be something like trying to use correct grammar (this has happened to me a few times), but I've stared at this code for hours upon hours and don't know why NetBeans says it's wrong. There …

Member Avatar for PopeJareth
0
87
Member Avatar for the_prox

Hi there, I need to write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). As far as I can tell I have all the code written, it's now just a matter of …

Member Avatar for VernonDozier
1
175
Member Avatar for emint

hi, i got class A which class got some graphics to display. when i run the program in class A its fine, but i when run from class B it display like 40 sec delay. any one who can help me? really need help!

Member Avatar for emint
0
105
Member Avatar for Talguy

I am trying to make a java sever code communicate with and iphone hello world app. When I run the iphone app it sends the length of the string first then sends the string. the Length of the string should be 2 but my server code prints out 33554432. Also …

Member Avatar for Talguy
0
171
Member Avatar for ragnarok511

I am having trouble with a project that is used to create a simple library database. The code does compile but during runtime, it throws a nullPointerException. It points to addBook in my main method. Here is my code: [code]public class Library { Book[] books; int numBooks; String address; static …

Member Avatar for ragnarok511
0
363
Member Avatar for VernonDozier

OK, I haven't done much with Serialization. I have a simple program that creates four JPanels with different background colors and adds them to a larger JPanel using a 2 x 2 GridLayout. That larger JPanel is added to a JFrame. I've written my own serialization code to override the …

Member Avatar for VernonDozier
0
1K
Member Avatar for iamwa

i am an IT STUDENT MY INSTRUCTUR HAS GIVEN ME ATASK TO BUILD WEB BROWSER IN JAVA AFTER GUI WHAT I HAD TO DO PLEASE HELP ME!!! NOT GIVE ME THE CODE JUST TELL ME EASY STEPS COMPLETE IT THANKS!!!

Member Avatar for saggy4
0
108
Member Avatar for ronpaul53

I can quite honestly say I am lost, having learnt HTML during the past 2 years and trying to understand a bit about java, but find myself very confused. Yes could look in books but find them equally confusing the same as when learning HTML and preferred to do more …

Member Avatar for ronpaul53
0
172
Member Avatar for baftjar

Task: Given input file A, translate the content to produce output file B Hi there, I need help in solving this domain problem. Any help will be appreciated. ====Scenario========== File A: Consists of multiple lines of data whereby each line is of form X;1.9,2;3,4.3; 5,6 Output file B, should consists …

Member Avatar for masijade
0
81
Member Avatar for multicoder

Hi, I have a strange situation to tackle.I have a paging for the website I am developing. there are few records in the table which i want to skip from to display in my list in the web page. But paging works on the total num rows as using mysql_num_rows(resultset)

Member Avatar for multicoder
0
103
Member Avatar for joshmo

I would like to know how one can make an installer, which I believe is supposed to copy needed files for an apllication to run to somewhere on the PC. I have read about how to make .jar files, and evaluted some softwares that can make installers. However, I have …

Member Avatar for peter_budo
0
103
Member Avatar for mahdi68
Member Avatar for jpd85

need help with outputting an array of objects to a text file. new to java so any help would be much appreciated thanks johnny

Member Avatar for kvprajapati
1
109
Member Avatar for davidnorth

Hello, I have a problem with my code and can't see what the difference can be. I am trying to change my JLabel text via a timer using .setText I have 2 small apps to demonstrate my problem. 1 - I have a JLabel within a JPanel within a JFrame, …

Member Avatar for davidnorth
0
561
Member Avatar for mr_andika
Member Avatar for peter_budo
-1
98

The End.