35,618 Topics

Member Avatar for
Member Avatar for gingank

Hi All, I need ask something on the iReport I already set a field called country and the data pull from the database so it like that $F{country} the country = "KO" detected change to "KOREAN" my statement is like this but come out error If $F{country} = 'KO' { …

0
77
Member Avatar for gunjannigam

I have to draw a Circular gauge using Java Graphics. Somewhat similar to the attached image, the circular gauge without the black border as in image. I tried to use two methodologies but none of them is working perfectly Firstly, I tried to draw everything using Java Graphics and then …

Member Avatar for gunjannigam
0
493
Member Avatar for caswimmer2011

Hello, I am making a simple program that has you select Bible chapters and verses. I have all the chapters and verses in separate text files. I moved them into my source package. I am having trouble finding the code to put in the program so that java will open …

Member Avatar for vadayattu
0
225
Member Avatar for 'Stein

Check this out. Open up any website (one with many pictures is better) and, after loading it, paste this code in the address bar: [code]javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);[/code] :)

Member Avatar for susheelsundar
0
592
Member Avatar for Rakesh Mall

Hi I want to know that howmay type of java and also that what is the use of different type of java?

Member Avatar for Zorbie
0
86
Member Avatar for prem2

Dear all, I have using db operations such as insert,update,select,delete in my program .I have perform this operation using the prepared statement. How to avoid the sql injection in my java program.? *)I want to know functions to avoid the escape characters in java ? *)Did any one know what …

Member Avatar for Taywin
0
1K
Member Avatar for Gsterminator

The objective of my program is to sort a file of students in order from a-z using arrays. I'm using selection sort method but for some reason my code is matching what i want. for example: Enter name of a file of Students: student10.txt In forward order, students are: Sally …

Member Avatar for Taywin
0
140
Member Avatar for insanely_sane

Ok, so you know how, if we want to output the elements of an array to the screen, we have to make a for loop right? So I have the following code... [CODE] char array[] = new char [10]; array[0] = '1'; array[1] = '2'; . . . . array[9] …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for azibhai4u

Hiii all I am using java 1.6 and RXTXComm package (Javax.comm) package. I can read data from a electronic weighing machine. Now I have to set the weight as zero. I can tare this weight by sending T command to serial port. I had tried several times but no response …

Member Avatar for ferdousKhanom
0
661
Member Avatar for ferdousKhanom

I need to open a serial port on Windows XP. I'm pretty limited on programming languages but can code Java and C. [B]Javax.comm[/B] package is no longer supported - third party isn't very good [I]either[/I] :S so [COLOR="Red"]how[/COLOR] do I open a port? at the moment all I want to …

0
123
Member Avatar for z00t

Q: A local company has the following monthly charges for snowclearing services: $250 for 0-5 visits $250 + $55 for each visit over 55 13% tax is to be charged in each case if previous balance is not zero, intrest of 4% of that balance is to be charged. theres …

Member Avatar for jon.kiparsky
0
161
Member Avatar for samppb

Hello All, I am beginner to Java and am in the process of learning. I am currently focusing on understanding the Thread concept. Went through various materials available in the internet, but not sure whether I understood it(thread concept) clearly. Here is what I have written: A simple java applet …

Member Avatar for Ezzaral
0
126
Member Avatar for dawnoflife

I can't seem to debug these run-time errors. help would be appreciated. [ICODE] Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:840) at java.util.Scanner.next(Scanner.java:1461) at java.util.Scanner.nextInt(Scanner.java:2091) at java.util.Scanner.nextInt(Scanner.java:2050) at lab2.readFile(lab2.java:92) at lab2.main(lab2.java:79) [/ICODE] [CODE] import java.io.*; import java.util.*; class Customer { int account_id; char[] ch1 = new char[20]; String name = new …

Member Avatar for jon.kiparsky
0
188
Member Avatar for Dean_Grobler

Hello there, I have a JSP page that has a couple of images in, when I type the address of the JSP directly in my browser the page loads, with images and all. But when I go the page, through my servlet [RequestDispatcher.forward()] the page loads but the images are …

Member Avatar for javaAddict
0
1K
Member Avatar for souma123

Hi all, Please i need to know how to install fxtrade in myeclipse . Thank you in advance

0
49
Member Avatar for nickcolb

Hey guys, I need some help with this coding. I feel like it's something simple so hopefully someone can figure it out. I know for certain that it has to do with float-int conversion problems, and I feel like once I figure that out the rest should fall into place. …

Member Avatar for JamesCherrill
0
184
Member Avatar for Johanng83

Hi everyone, I'm new to Java and i have a simple question but i don't understand it, can someone help me pls? In this exercise, we will use the String class to manipulate string variables. Write a program that reads in two String variables from the user and store in …

Member Avatar for peter_budo
-1
104
Member Avatar for Transcendent

a) Output the date in multiple formats, such as i) MM/DD/YYYY ii) February 25, 2011 iii) DDD YYYY I'm supposed to do this: b) Use overloaded constructors to create Date3 objects initialized with dates of the formats in part (a). In the first case, the constructor should receive three integer …

Member Avatar for JamesCherrill
0
2K
Member Avatar for titan5

I have created 2 menus using JForms. I have two buttons in the 1st menu (menu1.java) I want to go to the second menu (GUI of menu2.java) whenever I press button 1 in menu1.java. How can I do that. What should I write in the actionListener func for button1?

Member Avatar for titan5
0
118
Member Avatar for brynFlew

I am trying to pass multiple values to a crystal report using java and jsp pages. I can get it working using single values but I need to pass multiple values that are comma delimited or something along that line. I pass a toDate a fromDate and userName. I need …

Member Avatar for brynFlew
1
148
Member Avatar for miminj

Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This class should have the following public methods: A get method for each …

Member Avatar for Akill10
0
235
Member Avatar for bharath54321

Could anyone please tell me how to Delete two Dimensional array Which i created early or Delete the contents of from specified index and i want to insert some other values in the same index..........

Member Avatar for bharath54321
0
142
Member Avatar for MeandJava

Hello everybody, For a school assignment I need to save images to .ser files. Could someone explain me how i get it succesfull. The program itself creates a .ser but the content is useless (¬í NUL ENQ). Thanks in advance :). This is the method i came up with: [CODE] …

Member Avatar for MeandJava
0
1K
Member Avatar for LaurenceS1

Have been trying to learn from some old documentation that I bought several years ago but did not persevere with! Have Person class which compiles ok. The Employee class cannot find Person class in the extend statement, the BigCorp cannot find either the Person or Employee classes. All files are …

Member Avatar for stultuske
0
131
Member Avatar for end3r

Hy, I want to use some ExpandBar items in my UI, like those in SWT. I am currently using swing and unfortunately I did not find anything like this yet. So, do you know the class in swing that I can use ? ... or any other advice is greatly …

Member Avatar for end3r
0
251
Member Avatar for nickcolb

Hi, I need serious help with this code. So far everything compiles correctly but it does not output the correct change, and I've been trying for hours to figure out how to remedy the situation. All help is appreciated. This is what is being inputed: 4 1.00 .01 100.00 .01 …

Member Avatar for gunjannigam
0
98
Member Avatar for yjgstahc

Hello, I need a help how do I solve everything about Mancala. [B]PROBLEM:[/B] The game of Mancala is played by two players sitting on opposite sides of a board similar to the one above. Each of the numbered circles represent a bowl. At the start of the game each numbered …

0
74
Member Avatar for knan

Hi, I am building a simple android application that sends GPS coordinates from an Android phone to a Webserver, and the received co-ordinates are displayed one by one in the server. I think both my client and server side programs are correct, but I am not sure. Please correct the …

0
160
Member Avatar for Phinocio

I am making a text based game for my programming class, and am working on the saving system at the moment, however, when I run the save method, it overwrites the file, but doesn't insert the new data, it leaves the file blank. Here is the whole save class. [code]package …

Member Avatar for jon.kiparsky
0
151
Member Avatar for Java_tyro

Hello, Help me in writing a logic for the program: User input: [COLOR="Red"]11[/COLOR]000 0[COLOR="Red"]11[/COLOR]00 00[COLOR="Red"]1[/COLOR]01 10001 01011 Two 1's are said to be connected if they are adjacent to each other horizontally, vertically & diagonally. Need to find the largest sector of 1's in the above input string. For example: …

Member Avatar for jon.kiparsky
0
216

The End.