35,618 Topics
![]() | |
How is dialog box control used in net beans java?i know how to get it but not how to display some text or message in it. Please help. | |
Hi , I want to get a String from command line argument and add the values. [code] class Sample { public static void main(String args[])throws IOException { String Given_Id=args[0];//Getting input int Add=0;; int Store=0; System.out.println("The length of the String is "+Given_Id.length());//Calculating length for(int i=1;i<Given_Id.length();i++) { Add=Given_Id.charAt(i); Store=Store+Add;//Adding values } System.out.println("The … | |
Whats wrong with my program? class Hw7{ public static void main (String args[]){ String s = "Hello"; int v = String s; System.out.println(v); } } This is the error thats brought up: --------------------Configuration: <Default>-------------------- C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: ';' expected int v = String s; ^ C:\Users\Stephane\Documents\JCreator Programs\Hw7.java:5: not a statement int … | |
Here is my code, i am getting the following error message. How do i handle it? [code]package simp; import java.io.*; public class fCase { public static void main(String [] args) throws IOException { BufferedReader readObject = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter your expressions here"); String userEntry = readObject.readLine(); String [] toki … | |
i have alot of forms , when i press in button that's open the other form in new one how i can make it open in the same form & not open it in new one | |
hi friends which is easier to do programmming for speech recognition is it java or .net | |
i want to make image detection system using java. dont know the specific area yet...anyone have any idea??? please help me..=) | |
Hi I'm a Javascript newbie. I am displaying list of things in my Jsp page. each row has two drop down menus and a radio button. When the submit is clicked it sends the index of the radio button clicked as a hidden parameter. I need to get the drop … | |
Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: acc ess denied (java.util.PropertyPermission oracle.jserver.version read) hi, i m building an online examination application. The code is getting complied .but it throws an exception.Below i m pasting d code as well as exception.plz help me. It is a simple program for login. It matches d … | |
hello guys, I am trying to add an image to java panel. I have tried Paint, ImageIcon and every other sort of methods and failed. can someone explain me how do I add an image onto a panel? thanks for your time. cheers! | |
I need some assistance with my calculator code. I have developed a fully funcitoning mortgage calculator up to this point. I have one small change that I want to do. Right now this is considered an applet and I want it to be considered an application. It is my understanding … | |
I have 3 text fields and a button, and when a user presses the button, I would like to check if he has inserted integer values in the first two of them. If yes, then the sum of both of them is shown in the third one. If not, then … | |
i have to filter the user input in the comboxbox under my "search tab" eg. if the user were to type "y", "YAHOO" or any words related to "y" will appear on the filter list and allow the user to select. anyway my combobox values are taken from text file … | |
Hi clecer people! I am new can i have a little help here please. I wanted to mcuh the name and password of employee, entering and exiting the building ( it works but not completely) The task Implement a system that restricts which members of staff that have access to … | |
Thanks for the help in advance. So basically I have some Strings (lets call these Strings "Numbers") that looks like this. [CODE] Numbers1 = " 3.74343E-01 4.82245E-01 1.95635E-01 -1.05565E-01 3.81702E-02" Numbers2 = " 2.23965E-01 1.29925E-01 4.08791E-02 -4.21790E-02 -1.21410E-01" Numbers3 = " -2.73593E-01 8.63407E-02 -1.37682E-01 -3.01382E-01 -1.51439E-01" [/CODE] My program is … | |
i've just 3 days to give the full program to the doctor but i've a problem and i'm tired to find this problem could anyone help me to fix it please this program is currency converter the code is here: import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.Icon; … | |
So I have this question: Write a program that creates a constant MULTIPLE of type int. Set MULTIPLE to 3. Output the times table between 1 and 10 for MULTIPLE. Modify the program to output the times table of 7. And so far I've written this: //5. - Homework class … | |
I'm using the Scanner class and need help in setting up get and set methods for where the program asks the user to enter a first name and a last name as String type.( 2 methods, 1 for first, 1 for last) I need to know how to store the … | |
Hi All! Can anybody please tell me that how closely Android Application Development is associated with Java. That is, is it possible for a person working in Android Development to work on Core Java or J2EE oe J2SE ever? Let me make my question a bit more clear: " As … | |
Here is a code for writing a text file from console but i have problem regarding its portability. [CODE]import java.io.*; class KtoD { public static void main(String args[]) throws IOException { String str; FileWriter fw; BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); try { fw = new FileWriter("test.txt"); } catch(IOException … | |
hi , I am new to java.Can anyone what is the different between the following code for the java String Declaration. [code] import java.io.*; import java.util.*; class Sample1 { public static void main(String args[])throws IOException { String str="First String"; String Str1=new String("Second String"); System.out.println("The variable is "+str); System.out.println("The variable is … | |
Hi..can anybody please explain to me how to implement the importNode method to import an element from an xml to another xml with an example. | |
How do i write to a text file [B]WITHOUT[/B] deleting the current information in it? basically write on the next available line. | |
I am at my wits end with this code. I've been working on it for at least 2 weeks and the same error appears. The error, itself, is the incompatible types error. It appears underneath the division symbol. [CODE]// DivideByFive.java - This program determines if a number is divisible by … | |
Hi, I'm unable to change the date format in java. I'm given the code as follow. [CODE] java.util.Date date = new Date(); [/CODE] But it displays like july 17 13:01:43 GT 51:25 2010 But i need only this format july 17 13:01:43 2010 Can u pls help on this? | |
Hellooo All : I want to start my final year project on VPN applications using Java , I'm still wondering what can an application I can create , so can anybody provide me any topic , Thx in advance | |
Here is what I have so far: [code] package payrollpart2; /** * * @author Darryl */ import java.util.Scanner; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner input = new Scanner(System.in); //declare program variables String employeeName; double hourlyRate; double … | |
Hi guys, I'm a grade 11 I.T student and I need help.I have to create a networking application in Java,something like Mxit or Facebook, just a simpler version.I have no idea what to do and my teacher is too stuck-up to help me.All I have is a GUI.Can someone please … | |
i try to compile and run seems like work perfectly but once i click the "add" button(something like save) error come out i dont know what problem with the codes [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* … | |
Hi, I need to get the current date without using [B]any packages or any construction methods[/B]. Simply, i want to get the current date by convert date to string. I used this code. Please find the below code... [CODE] String getDate = new SimpleDateFormat("yyy/MM/dd HH:mm:ss"); return getDate.format(date); [/CODE] But, i'm … |
The End.