31,001 Topics

Member Avatar for
Member Avatar for raephel
Member Avatar for boiishuvo

I am a new learner of Java. Thq question is "Write a Java program ShowStars.java so that java ShowStars numA1 numB1 .... display a sequence of stars "*", starting from position numA1 and ending at position numB1. If there are further such integer pairs, say, numA2 and numB2, do the …

Member Avatar for javaAddict
0
182
Member Avatar for Megha SR

guys........ can anybody help me in FUNCTRIONS?? i'm not able to understand it. can u show me examples also???????? pls:icon_confused: :cool: pls reply............. thankyou.........:?:

Member Avatar for JamesCherrill
0
93
Member Avatar for madhub2v

i want to know that.. i hava a small java program i.e to caliculate electricity bill(home or commercial). i have compiled and executed it. so now i want to turn this program to a appilcation like caliculator. How?.

Member Avatar for Stefano Mtangoo
0
148
Member Avatar for hmarie88

I keep getting these errors when I try to run the program Exception in thread "main" java.lang.NumberFormatException: For input string: "GTR" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.parseInt(Integer.java:499) at Inventory6.addProductToInventory2(Inventory6.java:549) at Inventory6.main(Inventory6.java:734) I've spent hours trying to figure out what I'm doing wrong and it's due in a few hours. I …

Member Avatar for hmarie88
0
98
Member Avatar for toferdagofer

im trying to figure out how to get the max and min of the values that are entered if i run this program. I want the user to enter in a series of numbers until they were finished and to terminate it to type -99. I'm having quite a few …

Member Avatar for toferdagofer
0
194
Member Avatar for bunifrog

I already have a Please Press Enter to continue... Statement for the end of my list that will allow the list to stay on the screen, be read, then when the user is ready they hit enter and the list continues to the next page. That is part of the …

Member Avatar for bunifrog
0
184
Member Avatar for Xufyan

See the code below, [CODE]import java.io.*; class Test1 { public static void main (String arge[]) throws IOException { InputStreamReader values = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (values); String value,store; char ch; System.out.print ("Input String: "); value = br.readLine(); store = ''; int ln = value.length(); for (int …

Member Avatar for Xufyan
0
257
Member Avatar for tallmen2

how do i store a .bmp image or a .jpg image in a table in MS Access database?

0
24
Member Avatar for jk_bscomp

Hello everybody!!! Can someone help me on how to create an executable file on java? I made some applications in java but my problem is, I need to compile my program everytime I want them to run ... What I want is to compile my program once and then just …

Member Avatar for nickguletskii
0
162
Member Avatar for anushri

i create a java prog for simple banking purpose.. but its not working properly... when we create account through 2nd option,it work as it coded but if go through 1st option it doesnot access created object but create new one....and unable to perform deposit and withdraw function in created account. …

Member Avatar for nickguletskii
0
166
Member Avatar for raj26061990

The two numbers are accepted as Commamnd line arguements and GCD of those numbers are found using a recursive method.

Member Avatar for raj26061990
0
2K
Member Avatar for Xufyan

I got to assignment first one was to print the data of two students using different classes and constructors and count the total numbers of records and i've done this. here is the program. [CODE]public class Student { int RollNo; String name; static int stdcount=0; public void print(){ System.out.println ("Roll …

Member Avatar for NormR1
0
834
Member Avatar for skyzer

[url]http://www.gasuinfo.org/planetarysystem/index.html[/url] [CODE]<html> <head> <title>Planetary system</title> </head> <body> <p> Applet</p> <p align=center> <applet code="applet.class" archive="planetary.jar" width="900" height="600" > </applet> </p> </body> </html>[/CODE] if i run my applet from eclipse, then it works fine. in command line i wrote [I]jar cvf0 planetary.jar *[/I], jar file was created and i uploaded it and …

Member Avatar for NormR1
0
127
Member Avatar for raghujosh

I am trying to connect to a SQL server 2008 database from within Eclipse. My SQL server uses integrated authentication for login. Eclipse prompts for integrated authentication , but it is unable to login. I get an error message as "This driver is not configured for Integrated authentication". The sqljdbc_auth.dll …

Member Avatar for raghujosh
0
432
Member Avatar for Melow

i would need same help, i don't understand why this is not working what i'm trying to do is to make a small slideshow. i searched the web and i saw that this it should be done... my problem is that the JLabel that should contain an ImageIcon doesn't load …

Member Avatar for tong1
0
156
Member Avatar for muniba

hi m working on an image editor as its my class project.i have the difficulty in displaying image on aa panel in the same frame view in netbean 6.9.plz help me

Member Avatar for NormR1
0
58
Member Avatar for muniba

plz tell me where i am stuck.how could i solve this package drawing; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.File; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.*; import javax.swing.event.*; /** * * @author */ …

Member Avatar for nickguletskii
0
118
Member Avatar for SC803

Write a grading program that helps to determine your letter grade based on your exam score. For example, when you put in exam score of 80, the program will determine you get a B. Please note the following: 1) Your letter will be determined by only one exam score. 2) …

Member Avatar for tong1
0
100
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Member Avatar for JamesCherrill
0
156
Member Avatar for pallavigupta117

Ive made this calculator using java swing.I want to add new buttons to my frame if user selects 'Scientific' from file menu and remove buttons frome the frame if user selects 'Standard' from the menu. By default it is selected to standard. Write now a new window pops up above …

Member Avatar for mikeNIkesT
0
120
Member Avatar for kiranpvsr

Hi, I get the following output : I dont understand why after the decimal point, the values start changing from 0.13223. The line in the code is temp = temp - 0.001; For the file0 the value of temp is 0.14623 For the file0 the value of temp is 0.14523 …

Member Avatar for NormR1
0
131
Member Avatar for fullgl

I see about Tim sort on Wikipedia..? But, I can't understand on tim sort code(java). I want Example of Tim sort for learn it. To understand it. Thanks for your help. Tim sort is a less data for learned.

0
30
Member Avatar for nssltd

Hi sorry about this kind of nooby question but i have started learning java and i am making a Chat Application, i am making it using the killer game programming in java book. But i have ran into a problem. The Code asks me to import [CODE]import javax.servlet.*; import javax.servlet.http.*;[/CODE] …

Member Avatar for Ezzaral
0
129
Member Avatar for vhea

import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.text.*; import java.text.*; public class Vhea extends Frame implements ActionListener{ JFrame frame; JPanel panel1, panel2, panel3; JLabel inputLabel; JFormattedTextField inputField; JButton button; Container contentPane; JOptionPane optionPane; String inputTxt=""; public static void main(String[] args) { Vhea tm = new Vhea(); } Vhea() { frame …

Member Avatar for JamesCherrill
-1
102
Member Avatar for nssltd

Hi well i had difficulty using javax.servlet; so i downloaded the class files of the sun website. but i dont know how to use them in netbeans ide 6.9? does anybody know how to import them into a project? i have the entire javax.servlet package(includes javax.servlet.http; )the class files are …

0
61
Member Avatar for Mylsamy

Hi all, I want to display the Number values instead of String. For example, if the User gives the Input as fifty, i displayed the Output as 50. Is any existing method in Java to call for displaying Numbers? Or how can i solve this problem? Thanks in advance and …

Member Avatar for javaAddict
0
133
Member Avatar for Aanchal89

[code]import java.sql.*; import javax.sql.*; import javax.swing.*; import java.applet.*; import java.awt.event.*; import java.awt.*; public class Display extends JFrame implements ActionListener { JLabel l1; JTextField t1,t2; JButton b1,b2; public Display(String s) { super(s); l1 = new JLabel("user name"); b1 = new JButton("submit"); b2 = new JButton("reset"); t1 = new JTextField(20); t2 = …

Member Avatar for JamesCherrill
0
102
Member Avatar for JamesCherrill

I have a problem involving Generics. Here's a simplified version: Suppose I have a generic method to add a new element to a (possibly empty) ArrayList, like this: [CODE]<T> void addNewTo(ArrayList<T> list)[/CODE] What I need to do is to determine the correct class for the ArrayList elements so as to …

Member Avatar for JamesCherrill
0
187
Member Avatar for NT.

Hi, I have a question regarding compilation. I am having 2 classes and one class basically uses another class. Let's say for instance we have 2 classes A and B. Now class B have something like this: Class B { public void x() { A a= new A(); a.getSomething(); } …

Member Avatar for JamesCherrill
0
87

The End.