32,199 Topics

Member Avatar for
Member Avatar for ilikepaste

So I'm trying to define a counter in a while loop, and print it from the class: [CODE]public class odd { public static void main(String[] args) { System.out.println("Input your number"); int x = IO.readInt(); int odd = 0; int even = 0; while (x != 0) { if (x % …

Member Avatar for ilikepaste
0
234
Member Avatar for ilikepaste

So I'm trying to write a program: Print a number in scientific notation with 3 significant digits (e.g., 0.000838423 = 8.34*10^4). You must define and use a module that rounds a number to a specified number of decimal places. Here is what I've got so far: [CODE]public class Sn { …

Member Avatar for ilikepaste
0
128
Member Avatar for arshalan

hello every1, Need 1 help here in creating a .jar bookmark, I m newbie in java. I want to make a jar bookmark 4 my site. Tell me how can made thisin pc , step by step, is there is any software?

Member Avatar for Progr4mmer
0
61
Member Avatar for carlitosway17

Hi am working on a shape inheritance hierarchy and am having trouble with this particular class I have two errors that state class, interface, or enum expected: on the lines indicated in red everything else seems fine I have attached the whole project If you need to check out other …

Member Avatar for Taimoor Rana
0
294
Member Avatar for jdm

I'm working on a program where I need to have the user enter the size of the array and then enter the numbers to be stored in the array. If the user enters in -99999 the program quit. I also need to display the sum of numbers enter into the …

Member Avatar for mKorbel
0
173
Member Avatar for vigneshvdm

[B][COLOR="Green"]hi evryone !! i am designing sites in sharepoint 2010 and i need to use the javascript in vb.net!! and how to display an alert message in a web page using vb.net!?! please help :) thank u :) [/COLOR][/B]

Member Avatar for codeorder
0
93
Member Avatar for Progr4mmer

I noticed my JDK is 6u21(1.6.0_21) and the newest is 6u24(1.6.0_24) is there any way for me to update without re downloading, is there and reason to either?

Member Avatar for Progr4mmer
0
149
Member Avatar for luisator

Hi everyone!!! I am newbie in java programming, I am using a communication API. I am havin some problems. Iwant to use a method defined like this: enableRecording public abstract void enableRecording(DeviceID device, Boolean immediatelyActive) throws CstaException and for that I am doing the following: recordingActivation = new Boolean(true); enableRecording(id, …

Member Avatar for Ezzaral
0
167
Member Avatar for manish250

Hello all can anybody tell me why i am getting null pointer exception. [CODE] String mesg=""; try { URL u = new URL(strOp); BufferedReader r = new BufferedReader(new InputStreamReader( u.openStream())); String s=""; while((s=r.readLine())!=null) System.out.println(s); if(s.equals("SUCCESS")) mesg = mesg+"Your Request has been Processed.you will be intimated by a sms soon"; else …

Member Avatar for manish250
0
176
Member Avatar for cypher1

Hi If someone could please advise me I was thinking of starting a course in Java programming online with one day workshop,the course requirement Knowledge of programming principles and experience in procedural programming or scripting languages, such as Visual Basic, C, or JavaScript; and an understanding of object-oriented languages, such …

Member Avatar for Progr4mmer
0
165
Member Avatar for lohit kumar

Hello Everyone, i'm trying to convert a .jar file to .exe... first of all is it possible? If so then how?

Member Avatar for Progr4mmer
0
169
Member Avatar for litchi

Hi :) I am writing an admin application for a website I've written. It's a basic database update/insert/delete app. I started by using the website's server, but the time it took to connect to the server (since the main JTable is populated from the db, you have to wait for …

Member Avatar for pkulkarni89
0
745
Member Avatar for techgig
Member Avatar for jclawson000
0
190
Member Avatar for jclawson000

Greetings to the community! I am trying to print a two-dimensional character array and it is printing out ASCII values instead of the actual characters. I think the solution is simple but I can't figure it out. The following is the code snippet and the function that I am using …

Member Avatar for jclawson000
0
2K
Member Avatar for manjarivatsa

Dear all, I have a .exe file of a hydrology model(in FORTRAN) and I need to supply an input file to it using < redirection operator and later store results in a file.It is required to do it through Java platform.Eagerly waiting for relevant replies.

Member Avatar for masijade
0
47
Member Avatar for topaz

Hi everyone, i am trying to validate password entered into my system from a jsp page, i want to create a method that would check that a password entered is not less than six characters and not more than 15. Does anyone have an idea on how i could go …

Member Avatar for stultuske
0
181
Member Avatar for cacolukia

Hello great people. I'm a beginner in programming and I'm having troubles with NetBeans. In those lines down NetBeans reports [B]expected ';'[/B]. I'm assuming that it has something to do with activating classes or jar files somewhere in NetBeans, but i can't find where nor which classes to activate. Please …

Member Avatar for cacolukia
0
172
Member Avatar for srinivas88

Help with DOM.I am trying to access the nodes acc. to their levels in an xml file.reached upto 3-4 levels then getting a nullpointer exception.Please help...wat datastructure would better suit this.i need to index all the nodes.the xml file is cs.xml given under and the java code below tht. <department> …

Member Avatar for peter_budo
0
226
Member Avatar for anthonyjpv

Ive been learning java since last month and I wonder if theres any website that you can suggest which will force me to do a problem solving to enhance my program logic skills? Like homework or assignments from beginner to intermediate to advance. I know there are lots of tutorials …

Member Avatar for peter_budo
0
147
Member Avatar for kubiak

Hi, I have some problem i must to do some homework for our subject called object modeling in java. Award: Add code to the List class. Inserted numbers should be in two way linked lists stored in ascending order sorted, duplicate values are allowed (re-inserting the same value of nothing), …

0
46
Member Avatar for buzmay

Hi guys I am quite new to java, and been trying to make a fibonacci number program just to learn more. However I have search the web seen examples and more and I still cant get run this code, there seems to be something wrong with> int N = Integer.parseInt(args …

Member Avatar for masijade
0
117
Member Avatar for intes77

Hello i need help with the popping of stacks. i want to pop them all once i go into the Clear() method, but im having problems with the codings. here's my code: [CODE]import java.util.Stack; class InfixPost { static Stack inputStack; static String output = ""; public String infixToPostfix(String input) { …

Member Avatar for masijade
-1
142
Member Avatar for Mykd

Hi I get the following errors when I changed something - I don't know what, but these occur now. Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError at sun.awt.Win32GraphicsConfig.getBounds(Native Method) at sun.awt.Win32GraphicsConfig.getBounds(Win32GraphicsConfig.java:240) at java.awt.Window.init(Window.java:368) at java.awt.Window.<init>(Window.java:407) at java.awt.Frame.<init>(Frame.java:402) at java.awt.Frame.<init>(Frame.java:367) at javax.swing.JFrame.<init>(JFrame.java:163) at ExitJoke.<init>(ExitJoke.java:22) at ExitJoke.<init>(ExitJoke.java:43) <-- Keeps repeating itself over and over …

Member Avatar for Dev Ubhare
0
193
Member Avatar for churva_churva

[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; public class EmployeeEntry extends JFrame implements ActionListener, KeyListener,ItemListener { JTextField id, last,first,mi,age,branch,hours,pay,items,rate; JRadioButton male,female; JComboBox emptype; JButton add,delete, back; JPanel p1,p2,p3,p4,p5,p6,p7; JPanel p1_1,p1_2, p2_1,p2_2, p3_1,p4_1, p4_2,p5_1,p5_2,p6_1,p6_2,p7_1; JLabel labelMessage; EmployeeList emplist=new EmployeeList(); Employee empH=new HourlyEmployee(); Employee empP=new PieceWorker(); Employee [] employee; String …

Member Avatar for churva_churva
0
764
Member Avatar for anthonyjpv

I created a console program in jcreator (java) which asks the user to enter a number in string and converts that string value into char array and then converts each char array into an integer which I also stored each as an array and then adds all the value from …

Member Avatar for ztini
0
114
Member Avatar for Oppression

Hello there. I have a working method here, called rotateRight() that takes an array and shifts all the elements to the right, except the last one that is placed at the start I have debugged the method, and the method works fine. However the changes are not being reflected in …

Member Avatar for ztini
0
111
Member Avatar for Taimoor Rana

Hello Guys, I'm trying to learn how to use the GridBagLayout manager... but when I write it like the following: [B]JPanel panel = new JPanel(new GridBagLayout());[/B], Java tells me the following: [U]cannot find symbol symbol: constructor JPanel(gridbaglayout.GridBagLayout) location: class.javax.swing.JPanel.[/U] When this didn't work, I tried type casting [B]JPanel panel = …

Member Avatar for Taimoor Rana
0
512
Member Avatar for Abdel_eid

Hello All , i urgently need to know how to store Arabic data in database , when i create a DB create database system; create table customer( name varchar(100)); i can't store the name in Arabic what can i do..? thanks alot

Member Avatar for Abdel_eid
0
149
Member Avatar for kiran.bygani

sir i have little bit confusion about multilevel&multiple inheritance and why doesn't support multiple inheritance

Member Avatar for Mattox
-1
76
Member Avatar for Pureblood40

Ok I have everything working for the most part. I think. Here is what I am trying to do. I am to allow the user to enter the name of an employee, hours worked over 5 days, and pay rate. I have done that. I am then supposed to generate …

Member Avatar for Mattox
0
79

The End.