473,554 Members | 2,917 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.
24
83,564
thread by: SkyGenius | last post Jan 12 '07 by: r035198x
Hello, I am a new Java learner. I would like to develop one model by using Java. In that model, there are many files to read. I want to write a method in Java to read a file and store the data in array(s). Later, I just only call that method to read other files. Would you please help me to write a code to read the data in the following formats: ...
24
3,059
thread by: shana07 | last post Apr 24 '07 by: shana07
I hope I can get some pointers about multiple precision integers in here. My lecturer has given us a task about using java big integer class. I use calculator to calculate 2 to the power of 128 and result is this: 3.4028236692093846346337460743177e+38 What does this 'e+38' mean? How multiple precision numbers are being processed in a...
24
4,100
jeffbroodwar
thread by: jeffbroodwar | last post Jun 14 '07 by: r035198x
Hi everyone, Please help me accomplish the following : 1. how can i copy a file in java then paste it in a desired location 2. how can i run a .jar file run by just double clicking on it.... I need to know the answer asap... please reply asap... thanks.
24
1,748
japuentem
thread by: japuentem | last post Jun 29 '07 by: r035198x
I found this example on a web page Enumeration enum=v.elements(); while(enum.hasMoreElements()) { String elemento=(String)enum.nextElement(); if(elemento.equals("tres")) { System.out.println("Encontrado tres"); break;
24
3,289
thread by: gowrisonia | last post Aug 27 '07 by: r035198x
sum of two varaibles without using mathematical operators.
24
4,189
thread by: GesterX | last post Nov 21 '07 by: r035198x
First of all I'm new to this site but it certainly looks like a place that i will be visiting more often! Onto my problem. I am creating a Hotel Bussiness project in java using BlueJ The classes are as follows: Hotel - Deals with the major functions of the hotel (i.e guests booking in, finding rooms etc.) Room - Used to decide whether a...
24
10,019
thread by: brendanmcdonagh | last post Oct 21 '08 by: brendanmcdonagh
Hi all, I was rather suprised to find that the String java api doesn't contain String.contains(char aChar) method. It has a similar method for a charsequence but not one for what i need. So unless someone tells me im wrong I ve come up with a another way. If i have a char aChar = 'x' then a String aString = "test"
24
4,592
thread by: vishal prada | last post Mar 12 '12 by: r035198x
hi i have one dropdown control on my jsp form and want to retrieve the value of mysql database field. "Country_Id1 = rs.getString("Country_Id");" using i get that value <select name="countryId" > <option selected="" value="1"> India </option> . .
25
1,387
thread by: sugard | last post Sep 24 '07 by: JosAH
I am doing an assignment and following is part of the question: A program is to be devised for a university to work out whether or not, a student or a professor, is outstanding. The criterion for a professor to be outstanding is to have over 120 publications. The criterion for a student to be outstanding is to have a Grade Point Average of 3.3....
25
3,939
thread by: yottabyte | last post Dec 8 '11 by: xdrmntc
Hey, I just started programming this September and I have an assignment in which I am supposed to create a hangman game. This is my first post on this forum so forgive me for any "noob" mistakes Now I'm still learning Java so this will be a basic program running in the console window (no GUI) using strings loops, arrays, etc but hopefully nothing...
26
6,966
thread by: colinNeedsJavaHelp | last post Feb 28 '07 by: r035198x
I need the program to prompt the user to input an odd number between 3 and 79 and then the output will look like this: for example if they input 5: * ** *** **** ***** or 9:
26
2,335
thread by: Jenitha S | last post Aug 30 '07 by: dmjpro
Hi, I am working in JSP code.A Menubar is displayed in JSP page.It's working fine in IE. But in case of firefox the very first menuitem is not working.If i move that menu item as second means it's working fine.Can anyone help me on this. XML code used: <menubar key="menubar_home" url="Home.do"/>Home
26
4,824
thread by: hiyamwah | last post Nov 26 '07 by: hiyamwah
Hi,This is my problem which my work want me to solve: This system is intended to provide the school timetabler with information to support his/her timetabling activities. Please note it is not expected to schedule classes. The information required are the programmes, the core and option modules for each programme, the activities (lecture,...
26
4,591
thread by: Hazza | last post Oct 21 '07 by: JosAH
Hello, I am teaching myself java and am completely stuck. I am using the java development kit and vista command prompt to compile and interpret programmes. I am getting error codes which don't make sense because they refer to a code that seems all right to me. Here is the code: class calculator { public static void main(String arguments)...
26
17,323
thread by: CodeTilYaDrop | last post Feb 18 '08 by: JosAH
Does anyone know how to compare contents of two ArrayLists? I want to compare them to see if they match up. Do you have an example or could you point me in the right direction. I know I need to loop through it with an if statement a for loop somehow or both, but I am not sure how. thanks for any help you can provide-
26
1,987
thread by: MrHuggykins | last post Apr 29 '08 by: questionit
I need to display the sum and the average without initializing num and num2. I can't figure it out and it's killing me. I can't seem to get the sum or average displayed without assigning the varables values. Any help? -------------------------------------------------- import java.io.*; import javax.swing.*; class Numbert
27
4,363
thread by: sandyw | last post Apr 10 '07 by: sandyw
Hi Everyone. Need some help. I have no ideal how to start this. my arlist is as followed static ArrayList arlist; arlist = new ArrayList<ticket>() I do not know where to go after this how do I compare a value with a class method??? ie empid it does not work, it tell me I can not because its static Here is what I have so far
27
3,194
thread by: bohiyaanam | last post Jul 12 '07 by: r035198x
hi! I am from india .I am new to Java.Presentlly i am working on project in which i need to use mysql. I had set up an development env.for the same .I had installed mmsql jdbc driver also. i am using apache-tomcat-jsp-mysql. but when i ran an servlet which includes mysql db it gives error like "Access denied for user 'root'@'localhost'...
27
4,070
dmjpro
thread by: dmjpro | last post Sep 28 '07 by: Nepomuk
Today I came across a thing, is it possible to change the Standard Output Stream? Then I immediately went for assign the System.out variable. System.out = new PrintStream(new File("some_file_name")); Then I got a message, the final variable not to be updated. Then I came to know that I have to take help from API,
27
3,069
momotaro
thread by: momotaro | last post Jun 11 '08 by: BigDaddyLH
why can't we just extend the class that will be using the clone method in order to be able to use it without overiding?
27
2,148
oll3i
thread by: oll3i | last post Nov 16 '08 by: Dököll
i created and ejb in deploytool then added web content to it i added index.jsp in file refs as a welcome file i added ejb refs but when i deploy it i get 404
27
2,780
thread by: first2drown | last post Feb 4 '09 by: JosAH
So I have my Algorithms class tonight and I want to get the lab done before or during the class. I have write a recursive method that takes an int as a parameter and also returns an int. It has to REVERSE the int. What the heck. I'm not allowed to convert it to a string or anything, it says that I will not get credit if I do. So could someone...
28
5,114
thread by: gmcdanie | last post Jul 17 '05 by: JR
I am looking for a Java Decompiler... preferably free. Any suggestions. Ease of use isn't a problem as long as it does a fair job.
28
8,904
thread by: shana07 | last post Apr 11 '07 by: shana07
Friends, I need some inputs about my java program. My program is supposed to store 3 information into an ArrayList so-called arrayOne at each runtime: 1. Unique ID 2. Boolean Value 3. data. Let's assume I give first input a = 5, compile & run: Result - arrayOne. Second Input a = 24, compile & run: Result - arrayOne. Aim: To compare...
28
2,284
thread by: ajos | last post Sep 14 '07 by: dmjpro
hi frnds, im doing a project in struts... my project specifications- struts1.1,tomcat5.5.23,eclipse3.2. the situation--> i have a form where i have a html <select> attribute in the <option> tag,inside the option tag is supposed to have the value of the string say s3..when i select the value from the select attribute and click submit the...

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.