32,204 Topics

Member Avatar for
Member Avatar for system analysis

[COLOR="Green"][B]Assume that you need to calculate a sum of large number of integers which are in a array. by using the thread class. plz i want the answer today.\\\ thank you[/B][/COLOR]

0
62
Member Avatar for georgewb

Hi everyone, I need your help please What do i need to make my program read the next character using console.nextChar(); I've added the following: import java.util.*; static Scanner console = new Scanner(System.in); and then in the main: char ch; ch = console.nextChar(); and when i compile i get this …

Member Avatar for ztini
0
3K
Member Avatar for shookees

Hello, I've been trying recently to find out how to print out text into the screen like from keyboard, that is printing into active window, just like from keyboard port. Is there a premade package/method for that or how do I use the keyboard port?

Member Avatar for ztini
0
77
Member Avatar for Phil++

Hello, I'm creating a windows like calculator using Java, I seem to be having some problems.. It will let me calculate two numbers together e.g. 2 + 2 (It will display 4) however, if I want to do multiple calculations... e.g. 2 + 2 + * 3 It will only …

Member Avatar for ztini
0
143
Member Avatar for anthonyjpv

I made a program which converts binary with ft pt but cant get it work, what could be wrong here? [CODE]import java.io.*; import java.util.Scanner; public class NumberConverter { public static void main(String args[])throws Exception { Scanner sc = new Scanner(System.in); System.out.print("Enter a number: "); String string_input = sc.nextLine(); double double_input …

Member Avatar for anthonyjpv
0
136
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
746
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
194
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

The End.