36,051 Topics

Member Avatar for
Member Avatar for nandomendoza

Can anyone help me get started on this instruction for a for loop: Ask the user for 2 integers. Print all the numbers BETWEEN them and also this one When everything else works, implement a for loop that is an infinite loop I have no idea where to start with …

Member Avatar for verruckt24
0
116
Member Avatar for sweetsilverrain

I've somehow lost the concept of the easiest part of this assignment... OK, We have a program which draws random rectangles based on mousePressed and mouseReleased coordinates. I am adding a Circle class which draws circles as well. I have the class written, the draw method written but now when …

Member Avatar for sweetsilverrain
0
225
Member Avatar for goldeneyeone

Hi, As part of a research dissertation entitled "A java mashup framework using common design patterns" I am conducting a survey. If anyone is interested and can spare 5 minutes your participation would be greatly appreciated. I am willing to share all research results with those answering the questionnaire and …

0
15
Member Avatar for pratima82

Hi, I need help in fixing this simple JSP Code below. The I need the MarkAll and the sort by classes need to come on the same line of the page. But now Sort By is coming one line below. How can i fix this? Please hlpe urgent [code=JSP]<div class="markAll"> …

0
50
Member Avatar for PhiberOptik

hey guys, A little background information first. I work as technician to get myself through school. I wrote an unattended batch file that installs java, adobe reader, open office, and avg free from a flash drive (we do alot of reformatting). I also use a ethernet to USB adapter, so …

Member Avatar for nmaillet
0
89
Member Avatar for wkid87

What do I need to modify in my Java File so I can turn my Java Program to a Java Applet so I can load it to a webpage. Do I need to post the code?

Member Avatar for masijade
0
53
Member Avatar for kisokos

Sorry for my poor English. What is the problem whit this code? The error is in the browser: "The method frissit() in the type Xml_file is not applicable for the arguments (String, String, String)" [B]in the JSP file:[/B] [CODE]<% String szerzo = request.getParameter("szerzo"); String cim = request.getParameter("cim"); String ev = …

0
52
Member Avatar for alkeshtech

Hi Guys, I am newbie to Java, I have take C++ at college. I want to create a 2 dimensional grid like on a graph paper with x-y axis. # of rows and columns will be specified by the user. Need some right direction to start this.

Member Avatar for Ezzaral
0
58
Member Avatar for djcoozy

Hi! I'm trying to play different songs every time I push a button in my program. The result is always having both songs playing over one another even though I have the code player.stop(); before player.start(); called. This has been driving me nuts for two days. Does someone know a …

0
60
Member Avatar for vamsi.g

how to check the next token is a integer or not .using StringTokenizer...if it is not an integer i have to skip the token and check the next token.. thanks in advance

Member Avatar for ~s.o.s~
0
2K
Member Avatar for transplantedNYr

I am using Jgrasp, as that was the one I used a few years ago when I first started. Now that I am doing these again, I need a new one. I keep getting weird run time errors. The programs work in my class examples, but when run on my …

Member Avatar for ~s.o.s~
0
251
Member Avatar for navinlearns

[code=java]BufferedReader console=new BufferedReader(new InputStreamReader(System.in));//system.in shud be changed;[/code] in this Line of code what ever is typed onto the keyboard gets into the console object, I want the BufferedReader object to read from a variable now my question is-what should be the parameter for BufferedReader Constructor??

Member Avatar for ~s.o.s~
0
78
Member Avatar for tksrules

I need to design tabs shown in the attached document. I designed some but need your help with the rest. Could you create them using 'Pools Tab' code as a blueprint so the programming outline in all the tabs look similar if at all possible? Password for the document is …

Member Avatar for rapture
-1
116
Member Avatar for eclipse3.4ide

hi, I have one drop down in my form. i want to access the selectd vaues from servlet. code in my servlet is: [CODE] String nval=request.getParameter("color"); [/CODE] in Jsp my code is: [CODE] ............ <select name="selectPrimaryKey"> <option>SelectValue</option> <% for (int i = 0; i < Nheadlist.size(); i++) { %> <Option …

Member Avatar for javaAddict
0
89
Member Avatar for snail_snail21

I want to create User Login page, but i have no idea about this, any idea for me? because just start to learn java, but i need create Login page....

Member Avatar for snail_snail21
0
249
Member Avatar for retrob89

Ok...so I have a project due in 3 weeks and I haven't started. If i don't get it done I won't be able to graduate...the problem is i don't get java AT ALL...if anyone is willing to help me out with parts of the project..i would deeply appreciate it. I'm …

Member Avatar for crunchie
0
100
Member Avatar for arseniew

Hello I'm working on simple text editor based on jTextPane i have no problem setting text color, size, font etc. but i have no idea how to get attributes from selected paragraph. i'v tried doing it by [CODE]myPane.getCharacterAttributes().getAttribute(key));[/CODE] but what shoud be the key? any help would be appreciated

Member Avatar for sillyboy
0
60
Member Avatar for nandomendoza

Does anyone know how i would write the code for the following instructions? Print the numbers from 3 up to 40 that are multiples of 5

Member Avatar for nandomendoza
0
108
Member Avatar for zemrix

Hey everyone, It's 3am and I'm pulling my hair out trying to get this to work. I'm reading data from a file that looks like so: [QUOTE] James 20 John 30 Peter 25[/QUOTE] and I am storing it in an arraylist then outputting the data. It outputs exactly as it …

Member Avatar for sillyboy
0
89
Member Avatar for ntredame

I have to create a class called Day that will carry out certain functions. One of the things that it needs to do is it needs to be able to calculate and return the day by adding certain days to the current day. For example, if the current day is …

Member Avatar for h3xc0de
0
202
Member Avatar for rockyPrz

Hi, I need a solution for implementing a rating system. Where users can rate movies in my application and display the total results for each rated movie.

0
42
Member Avatar for redmaverick

[code=Java]class Grade { public static void main (String args[]) { final int score = Integer.parseInt (args[0]); final char grade; if (score >= 90) { grade = 'A'; } else if (score >= 80) { grade = 'B'; } else if (score >= 70) { grade = 'C'; } else if …

Member Avatar for stephen84s
0
108
Member Avatar for dyollretsel08

i have a homework. do a program using java that will ask a user to input a infix expression , and the program will convert it to postfix expression... help!!

Member Avatar for stultuske
0
133
Member Avatar for azket

Hey everyone, i just completed a Java program that writes PDFs for me using the famous iText library. Now it's my task to do the same for RTF -- but i just couldn't find a suitable library for that. Now some of you might say: "I thought iText supports RTF, …

Member Avatar for stephen84s
0
75
Member Avatar for kclove

Hello Folks., Im new to this forum and just trying to learn Java. I have a program Im trying to write in Java. [B]its about managing flights and booking flights for customers and also Alter flight should customer wish to change their mind not travelling.[/B] Im kinda confused on how …

Member Avatar for stultuske
0
110
Member Avatar for srs_grp

Hello, I want to check uniqueness of id at the time of entry only.And I want to give message to the user at that time only.How to do this?

Member Avatar for stephen84s
0
181
Member Avatar for r.stiltskin

The code below is a simplified excerpt which compiles & runs, just to show the problem I encountered. I tried to use BoxLayout in the ColorPanel method, but the JLabel "swatch" was not visible in the frame at all. I found that I can get the effect that I wanted …

Member Avatar for r.stiltskin
0
76
Member Avatar for rahulrborkar

Folks, I am using xsl and xml for Report generation. In XSL I have created a table which has 6 columns and say 7 rows, in 6th column of each row I want to display multiple rows again. For this I am thinking of passing new line character after particular …

Member Avatar for rahulrborkar
0
145
Member Avatar for zaraeleus

Okay, I am having more difficulty with my Java class again. My professor assigned us a 2-D chart program... This is the output he wants: This program displays the annual cost of gasoline for different mpg and price per gallon of gas assuming 18,000 miles driven annually. MPG 1.50 1.75 …

Member Avatar for stephen84s
0
173
Member Avatar for progurammaar

Hello there, This is my first post. I want to make a currency converter program in Java and for that i want live/real-time exchange rates. So can you please tell me how can this be done. I have full time net connection, so thats not a problem :)

Member Avatar for stephen84s
0
139
Member Avatar for lahiru17

please can u tell me how to create a software that can be used to send a email?

Member Avatar for stephen84s
0
62
Member Avatar for pratima82

Hi, I am new to J2EE and i have a requirement to convert the image logo in the banner of the page to an image logo link. How do i go about doing this, and where do i need to do it? The JSP of my header where i found …

Member Avatar for stephen84s
0
68
Member Avatar for rlaknar

I have tried Compression & Decompression of a file using GZIP & ZIP in java.It worked well. Now I need to do it for a directory. I came to know that ZIP is useful for compressing more than one file. I dont know how to proceed. Please tell me how …

Member Avatar for stephen84s
0
58
Member Avatar for Laidler

I now have teo classes the first one contains this [CODE]import java.awt.*; import javax.swing.*; class fm1 extends JPanel { public fm1() { this.setLayout(new GridLayout(3,0)); Dimension D1 = new Dimension (300, 300); JLabel fruit1 = new JLabel(); fruit1.setPreferredSize(D1); fruit1.setOpaque(true); this.add(fruit1); JLabel fruit2 = new JLabel(); fruit2.setPreferredSize(D1); fruit2.setOpaque(true); this.add(fruit2); JLabel fruit3 = …

Member Avatar for Laidler
0
125
Member Avatar for punitdam

Is there any API to parse Word document and store it in database. For e.g. Say following is a content of word document. Name: ABC Address: XYZ Telephone: 12341234 Then from above document data extracted and stored in the table say Person_Details (Name, Address and Telephone). Can any one help …

Member Avatar for h3xc0de
0
78
Member Avatar for notuserfriendly

[CODE] class OrdArray { private double[] a; // ref to array a private int nElems; // number of data items //---------------------------------------------------------- public OrdArray(int max) // constructor { a = new double[max]; // create array nElems = 0; } //---------------------------------------------------------- public int size() { return nElems; } //---------------------------------------------------------- public int find(double …

Member Avatar for notuserfriendly
0
131
Member Avatar for sufi89

hey guys i am new to java...well data structures, i have this assignment, where we have to basically accomplish radix sort. The first method is building a master linked lists. i have not even started can anyone help with me with that package sorting; import java.io.*; import structures.linear.Node; /** * …

Member Avatar for h3xc0de
0
124
Member Avatar for devlin021

Hi, Can anyone help me how to connect cloud garden(JSDK) with Netbeans... Pls help

0
32
Member Avatar for oldSoftDev

[code][code=java] public class LineSeg{ // these are the attributes of a LineSeg object private Point end1; private Point end2; private double length; // the constructor public LineSeg(double x1, double y1, double x2, double y2) { end1 = new Point(x1,y1); end2 = new Point(x2,y2); this.length=(double)(Math.sqrt((x2-x1)**2+(y2-y1)**2)); } }[/code]

Member Avatar for oldSoftDev
0
72
Member Avatar for shimul_bari

Hello EveryBody, I am having problem in uploading servlets in my server. The servlet works fine in my locanhost. But when i upload it it does not work. Can anyone help?

Member Avatar for stephen84s
0
150
Member Avatar for sujehsmarar

Hi im really new to jsp. any body can help me in creating a thread of my own. i have creadted the Db(Mysql) and data is inserting in to db. i dont know how to display the threads according to the user login can any body help me out????

Member Avatar for peter_budo
0
255
Member Avatar for kjaxx

My java app is doing a POST with Multipart format as thetype for a certain file size when uploading a file. The application server is checking the size and returning results, but the Web server is giving a page not found with the results. It appears to be trying do …

Member Avatar for stephen84s
0
86
Member Avatar for nanna

hi, i suppose to make simulation to cellphone. when press any digit ,it should appears on the display textfield to form a complete number. and when press the send button a message with"redialling+ the gigits pressed" appears on the textfield also when press redial button a message with " redialling+ …

Member Avatar for stephen84s
0
179
Member Avatar for jktallio

Im trying to have put in a list of 10 CD's (with informatiom, not just blank ones) that will ready be in the list before the program even runs. I obviously am new to this, so i dont know what to do. Any help? THANKS! This is my program this …

Member Avatar for stephen84s
0
99
Member Avatar for lovely_aly

Hi there. As I said, I'm a newbie to programming and writing code. I'm at home working on a lab project but keep getting a compilation error and I don't know how to fix it. Any help would be greatly appreciated. Here's my code: public void add(int i) { int …

Member Avatar for lovely_aly
0
90
Member Avatar for BestJewSinceJC

I have to write a program that mimics a digital clock w/ seconds, minutes, and hours. I'm sure I can get the displays working on my own and everything. My concern: what is the most efficient way to check the time? Should I just do Thread.sleep for 1 second then …

Member Avatar for Ezzaral
0
124
Member Avatar for jls7168

I need to make a simple refresh button for a gui java program I have the button made I just am not sure what the code needs to be to make the button work. Any help would be really appreciated.

Member Avatar for jls7168
0
168
Member Avatar for Nollyvenon

how do i create java code that randomly assign numbers to letters, sum them, display them and store them in a database

Member Avatar for Ezzaral
0
97
Member Avatar for easouza

I would like to programmatically convert existing Word and Excel documents into TIFF or PDF using JAVA without having to open the Office document (too slow). Are there any Office 2007 tools that could work or other 3rd party tools. The JAVA conversion program will run on Windows 2003 based …

Member Avatar for Ezzaral
0
110
Member Avatar for rlaknar

I have written a program in java for RSA algorithm to encrypt a string and decrypt on receiver side. RSA public key and n value are announced to receiver by sender. Then encryption process begins. The RSA program in sender side returns BigInteger which is the encrypted string and I …

Member Avatar for rlaknar
0
113

The End.