| |
thread by: anibio06 |
last post Dec 12 '06 by: r035198x
hi guys,
i want to find 2^n (pow(2,n)).
I am doing java.lang.Math and using power function. But error occured. Because my variable is integer type. but the function arguments are double.
Can u give me a solution to find 2^n using java
|
thread by: karthickkuchanur |
last post Jan 23 '12 by: dilipmanohar
Hai sir,
i assigned to calculate the age from current date ,i have the date of birth of employee from that i have to calculate the age dynamically,
i refer to google it was confusing me .please give some idea to do sir
|
thread by: b4ukiran |
last post Oct 30 '07 by: dbush3721
Hi all,
I have a requirement to print large double values without the exponential notaion. The double value can be a declared variable or any calculated value within the code. In any case, I should be able to print the result without containing the exponential notation. Please help me out.
|
thread by: ValValVal |
last post Oct 15 '11 by: tezzer
Please sorry for my dumb question but I cannot find information on how I can change settings so that in NetBeans 6.1 I can edit blue guarded areas.
I read in FAQ NetBeans Wiki: FaqFormEditingGuardedBlocks that I had to change something in Properties->Code ,but I really can't figure out what this should be.
Thanks in advance.
|
thread by: hana1 |
last post Aug 12 '05 by: Oliver Wong
Hello experts,
I used to program in C/C++ and now switched to Java. I am having a
difficulty that I need your help with. How can I limit a double variable to
hold 2 decimal points only? Say I have an array of 50 doubles that each ahs
a number such as 23.9918444. I want to round round this number to 23.99 and
any other calculations done on...
|
thread by: DeFault |
last post Feb 15 '08 by: fuse1921
I'm trying to create a method removedDuplicate() in which this method would find and remove a duplicated entry in an array of integers.
I would like any advice on how I would create this method.
|
thread by: rsrinivasan |
last post Jan 9 '08 by: ajos
Hi all,
I am developing application using struts. But i do not know how to append jsession id in URL. If any one know, reply me asap.
Thanks,
|
| |
thread by: krishna81m |
last post Mar 24 '08 by: krishna81m
How to create dynamic variables as follows
for(...)
{
Run This( "int var" + i = i;);
}
to be able to create and initialize var1 = 1; var2 = 2;
I was able to do this in a couple of scientific programming languages without any problem..
|
thread by: rpearson |
last post Dec 4 '07 by: shrije
I am new to J2ME programming. I finally got a program transferred to my Sony Ericsson w300i phone, installed, and running. I copied the .jar and .jad files to my "Other" folder, and installed it into the "Applications" folder. It runs.
But what I really want to do is now transfer a text data file to the phone periodically, and have the program...
|
thread by: maong |
last post Jul 17 '05 by: maong
Is it possible for a Java network application, using HttpURLConnection, to
set or influence the setting of, http headers like Connection. One example
might be setting Connection: Close to indicate that this is the last
expected transaction for a while and the persistent connection can be closed
with the response.
----== Posted via...
|
thread by: CodeTilYaDrop |
last post Jul 22 '11 by: purna
I am still pretty new to programming, and I sometimes can not figure something out. I am getting an error with this line in my program:
Public void count_syllables(int count_syllables)
I get the error <identifier expected>. What does this mean. I can not seem to make it go away!?
|
thread by: colinNeedsJavaHelp |
last post Oct 6 '10 by: crizel siongco
I am attempting to program a very basic calculator. The program simply needs to prompt the use to input the computation i.e. 2 * 5
The program needs to compute this and display the result as "The result is: 10"
I think my problem comes when I need to tell java to compute the users input. I do not know what function or method I need to use....
|
thread by: forJava |
last post Oct 14 '10 by: shanthi surya
what is System , out , println defined in the System.out.println() ?
|
thread by: ram23 |
last post Feb 2 '12 by: Chia Pet
Hi friends,
i need help ..
i am getting String value and i need to add leading zeros..
total length of Target string is 13char
eg: suppose if i get 12 as values..
it needs to convert into 0000000000012
|
thread by: dave |
last post Jul 17 '05 by: dave
(Forgive all caps... they are there to differentiate btw question and code)
THIS IS THE ERROR I KEEP GETTING. IT COMPILES BUT WHEN IT RUNS, THE
FOLLOWING POPS UP:
Exception in thread "main" java.lang.NoClassDefFoundError: PlayClip
THIS IS MY CODE:
import java.applet.*;
import java.io.*;
import java.net.*;
|
| |
thread by: EpochClock |
last post Jul 17 '05 by: EpochClock
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmera
Africa/Bangui
Africa/Bissau
Africa/Blantyre
Africa/Bujumbura
Africa/Cairo
|
thread by: SubbaRao Karanam |
last post Mar 23 '06 by: meena
What does this error for the Code below
java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at com.kbs.framework.client.gui.PIPReport.doProcess(PIPReport.java:562)
at...
|
thread by: marvinp |
last post Sep 28 '12 by: edk2
I am writing a class which contain a variable INFINITY. Is there any constant defined for this in java so that i can assign that value?
In .NET, there is System.Threading.Timeout.Infinite for infinity. I am looking for the same in java also.
|
thread by: MBeckford05 |
last post Apr 9 '07 by: JosAH
Hello, I am trying to write java program to input three integer numbers compare them and display the largest and Smallest number. I have thought about the problem I would need to use a comparison operate determine which number is larger and which is smaller. I am new to java I was wondering how to but this into java source code.
Can anyone...
|
thread by: Greg Scharlemann |
last post Jul 21 '06 by: appy77
I have set up Apache Axis with a Resin server. Everything seems to be
set up correctly, axis will validate if I display the
http://axis.scharlemann.com/axis/happyaxis.jsp file. However when I
attempt to run a simple web service example
(http://ws.apache.org/axis/ click on publishing web service for the
Calculator example) I get the...
|
thread by: Gil |
last post Jul 17 '05 by: Stewart Gordon
In C++, I can rethrow the exception I just caught
with the throw statement. Can I do something
similar in Java?
} catch (Exception ex) {
throw;
}
|
thread by: Ann |
last post Jul 17 '05 by: Andrew Patzer
Hi,
Is there any way to Change encoding of Java Vm to ISO-8859-1?
i am using Java vm along with an application called opencms.
I get the following error message..
Error: the encoding of your Java VM is different from
the OpenCms encoding!
Java VM file encoding: UTF-8
|
thread by: MarkoKlacar |
last post Jul 22 '10 by: prathimmi
I need to run a .bat file from java. This is what I got:
public class CallingBatch {
public static void main(String args) {
Runtime run = Runtime.getRuntime();
try {
run.exec("cmd start /c C:/batfile.bat");
} catch (Exception e) {
e.printStackTrace();
|
| |
thread by: maggiexoxo |
last post Feb 11 '21 by: Sherin
I'm trying to create a program that prompts the user for a number N. This number will be used to prompt the user N times to provide an integer.
|
thread by: gaya3 |
last post May 16 '12 by: nausadh
Hi,
can anyone please say me how to remove files from .jar file?
For Example:
I have created a sample .jar file with
jar cf sample.jar A.class B.class etc
Now i want to remove all except A.class from sample.jar.
How could i do that?Thanks in Advance.
|