473,544 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
2
1,543
thread by: bongskie36 | last post Mar 23 '15 by: bongskie36
var g_cat_form = null; function onLoad() { var cat = g_form.getValue('sys_display.original.sc_req_item.cat_item'); if (cat != 'Blackberry') return; var map = gel('variable_map'); var cat_form = new ServiceCatalogForm('ni', true, true);
1
1,444
thread by: Tofa | last post Mar 20 '15 by: chaarmann
I am working on Information Retrieval field.For this project I need to Tokenize a collection of documents such as text files..So,I just need the java code which will actually filter the stop word and output the text files after filtering ..help
1
1,367
thread by: raj000 | last post Mar 25 '15 by: Rabbit
When I run the following program to find an average it shows: "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at average.Average.main(Average.java:32)" Can anyone help me plz. package average; import java.util.Scanner;
0
1,636
thread by: manodrekha | last post Mar 30 '15 by: manodrekha
byte bytes = s.getBytes(); StringBuilder binary = new StringBuilder(); for (byte b : bytes) { int val = b; for (int j = 0; j < 8; j++) { binary.append((val & 128) == 0 ? 0 : 1); val <<= 1; }
1
1,536
Claus Mygind
thread by: Claus Mygind | last post Mar 31 '15 by: Claus Mygind
I need an example that will extract a decimal number from a string using RegExp sample data would look something like this "US,GS 0.0 g↵" ",GS 164.3 g↵" and if no number is found I would want to return false "↵"
0
1,625
thread by: nikolazl | last post Apr 2 '15 by: nikolazl
Hi people, I have a problem and I will try to describe it.I have one form in my Netbeans application.On form I have three text boxes where is text inserted.I have button Save and I would like to save data from text boxes to MS Word or MS Excel or to Notepad.I would like that text from every text box be stored in new line in word, excel or notepad...
0
1,431
thread by: VickyA95 | last post Apr 16 '15 by: VickyA95
Hi, so I'm having trouble creating a table that is used for a game. It needs to have 3 Human charaters (@), 2 Monsters (#), 3 Treasure Chests (*) and 4 Obstacles (O). The table needs to be 10 by 10 squares and gaps should be filled with . It should kinda look something like this: 1 2 3 4 5 6 7 8 9 10 1 . @ ...
1
1,583
thread by: amer sohail | last post Apr 18 '15 by: zmbd
add(b1); b1.addActionListner(this);
2
1,721
thread by: ZestyChieftain | last post May 18 '15 by: chaarmann
Hello. I have a program that is supposed to read a .txt file, save the data in an array, then print out that data. I have a program that compiles, but when I run it, it does not print the first line of the .txt file, prints the second line, then does not print the third line, but stays in the run and freezes. Here's the .txt file which is named...
6
1,822
thread by: samds | last post Apr 22 '15 by: samds
hi help me plzzzzzzz how to show alert when value exist in database in jsp I want to do a check on the field <input type="text"/> when the value exists in the database it displays an alert . sorry I not speak much English thanks :)
0
1,278
thread by: michaelp93 | last post Apr 28 '15 by: michaelp93
I need to create multiple "runner" objects each with three variables. The variables should be name, runner id, and amount raised. I have to read in two text files to get the information for these. One text files contains the runner id and runner name. The other text file contains the runner id and donation amount. I created a "driver" class to...
0
1,320
thread by: Teeappsider | last post May 8 '15 by: Teeappsider
pls, can any one help me with the code or explanation on how to create an image in j2me blackberry from the byte image saved in longblob field in php database
1
1,269
thread by: ashreto | last post May 22 '15 by: chaarmann
Hello, my basic need is to create pile of tiles just like in a 2048 game, perhaps i need to get the values from an array and display on those tiles which will be manipulated upon the mouse click and need to update those tiles again. So a 2D tiles and their display and usage information will be much helpful for me Thanks!
1
1,311
thread by: vinayshirish | last post May 22 '15 by: chaarmann
String sql1 = "select Products from where RecName='Roasted Turkey Sandwich' and UU='uma'"; Connection connection = getConnection(); StringBuilder builder = new StringBuilder(); try{ PreparedStatement statement = connection.prepareStatement(sql1); ResultSet results =...
1
1,406
thread by: aartik | last post May 22 '15 by: computerfox
what is parsing in java? explain with example
6
9,565
thread by: Bijiann | last post Jun 12 '15 by: Bijiann
I am doing a program in java .I have designed a java server page which has 3 drop down list's...country,state.I want to display only corresponding the values in drop down list state when a country is selected...(for example:-if India is selected,drop down list state must have only the name of states in India).I have created 2 tables country and...
2
14,556
thread by: zsazsa | last post Jun 2 '15 by: zsazsa
here are my codes int counter = 0; int i = 0; // for (int i = 0; i <= 3; i++) { while (i < 3) { String au = ausernametxt.getText(); String ap = apasswordtxt.getText(); String pass = "111"; String user = "zsa";
1
1,401
thread by: Nobody4406 | last post May 26 '15 by: Rabbit
I'm trying to write a program that asks the user to enter a single letter untill they enter a (.) They hit enter after each letter, but the loop wont continue. It asks them to enter a letter, then it sks for another letter (because it's not a peroid) but then it just stops. The loop doesnt continue. Even if they enter a peroid the second time, it...
3
1,378
thread by: Nobody4406 | last post May 29 '15 by: computerfox
Hi, I'm trying to make a loop that fills each of the 10 places in the array with a value, however i cant figure out how to make the loop end once all the slots in the array are finished. Thanks
1
1,611
thread by: Bjork | last post Jun 1 '15 by: chaarmann
Hello.. i would like to ask you. Its long time i did something in java.. and now I am lost. :) I have text file with constant elements in line but variable number of lines... text file looks like asdf 12 54 12 brjk 45 2 14 etc.. I want to make array from this file. Can you help me with my code? This not working.. String part = new...
1
1,595
thread by: maulik123 | last post May 30 '15 by: computerfox
i have to create 3 static username and password with its get and set methods and store in arraylist in bean class.then in servlet i have to perform the following task.1.create bean object.2.call bean method that returns bean object.3.if user is valid then store bean data in request object and redirect user to valid.jsp else invalid.jsp.how to...
5
3,614
thread by: charan41189 | last post Nov 7 '15 by: charan41189
i am trying to run Seleniumcode which was taken from other system i am getting following error java.lang.IllegalStateException: java.lang.NumberFormatException: For input string: "" at atu.testng.reports.listeners.ATUReportsListener.initChecking(Unknown Source) at atu.testng.reports.listeners.ATUReportsListener.onExecutionStart(Unknown...
0
1,305
thread by: zeyainfobank | last post Jun 9 '15 by: zeyainfobank
Hi, I have a requirement where i am required to calculate number of bytes arriving on particular port that is open and used by a particular device to send data. I am wondering if i can get some utility method or some api that can help me to achieve this. Thanks in Advance.
1
1,322
thread by: sat43 | last post Jun 15 '15 by: chaarmann
i ve fetched value from database and show them in dropdown box after i select the value from dropdown i submit tht value by using this.form.submit(). thn finally the dropdown box show the selected value.. but i want to show the selected value and the fetched value also.. anyone help me... Here is my Code <%@ page language="java"...
3
1,903
thread by: Mahesh1234 | last post Jun 22 '15 by: chaarmann
i have to make a auto-mailing system in java,in which mails send in form of HTML dynamic table and the mail attributes like TO,CC,subject,body message all are present in the database.The system is like that only the entries of the users should be mailed to the managers of that department in an HTML table which should be dynamic,please help be by...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.