473,539 Members | 8,653 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.
1
1,941
thread by: namdeva | last post Oct 9 '17 by: chaarmann
Hi Guys, Need help related to stack below are my questions related to stack. What is stack Benifits of stack stack in data structure definition how to implement stack using java programming
5
4,838
thread by: namdeva | last post Dec 10 '20 by: Ishan Shah
Hi Guys, can anybody explain me how to set temporary and permanent path in java
0
1,608
thread by: trinhtiet | last post Oct 5 '17 by: trinhtiet
I am trying to read an GZ file which has EBCDIC data and need to write the records into output file if that records has an character in a given position. I have done the below: Read the GZ file line by line using Buffered reader and GZInputStream, however when I read line ny line I am not able to compare the input char with the record. I...
1
1,713
thread by: dseals22 | last post Sep 29 '17 by: chaarmann
Hello Everyone, I have question: how do I reinitalize index of both of these restricted structures to 0? Here is the Stack Push Algorithm: if (top == 0) return false; // ** overflow error else {
1
1,715
thread by: dseals22 | last post Sep 28 '17 by: chaarmann
Hello Everyone, I know it might be a basic question, but I am just curious if you find out that the base address of an element is less than the actual number stored in array, is this taken in to account that your base address could be wrong for that element?
3
2,097
thread by: Bekir | last post Sep 26 '17 by: chaarmann
Hello,I have question about arrays.I know how to input array with for loop but i have to learn how to input array like this: n - number of elements we've got index and score of player and i have to sort it from the biggest.I did all good but i stuck on one thing. Ex: n=3 index score 1 20 2 30 3 10 it has to output 2 30
4
2,371
thread by: dseals22 | last post Sep 27 '17 by: chaarmann
I have created a Java program that is designed to keep track of student's names, identification numbers, and GPA's, but I want to know how I can test each one of my methods given the code I have? Can someone help me? Thanks! Here is my code of what I have so far. Also, how will my instance variables come into play at when use my methods. Some of...
1
1,762
thread by: floralincon | last post Sep 7 '17 by: chaarmann
I want to export all my wordpress data including views into excel sheet. I tried by installing some plugins but it won't helped me.
1
1,936
thread by: huss9095 | last post Sep 6 '17 by: chaarmann
all employees have different wages and overtime should be included output should look like this LogicFoo Ltd ABN:55135151115133 Pay Slip for: Employee2 Payment Date: 25/08/2017 Pay Period from: 14/08/2017 to 23/08/2017 Gross Pay: $919.10 Net Pay: $781.23 Description Hours Worked Calculated Rate Type Base Hourly @$18.20 40 $728.00 Wages...
1
1,716
thread by: sangeethsandy | last post Sep 4 '17 by: chaarmann
import java. awt. *; import java. applet. *; /*<applet code="rectsan"width=250 height=250></applet>*/ public class rectsan extends Applet { public void paint (Graphics. g) { g. drawrect(10,10,40,50); }
1
2,812
thread by: Devin Cortez | last post Aug 28 '17 by: Frinavale
How do I make this in limited to 3 login attempts: try{ stmt = con.createStatement(); rs = stmt.executeQuery("SELECT * FROM SECURITY WHERE USERNAME = '" + username.getText() + "'"); if (rs.next()){ if (rs.getString("PASSWORD").equals(password.getText())){ ...
0
3,148
thread by: qingqingcao | last post Aug 6 '17 by: qingqingcao
Do you want to developing once can be used by many another places? Do you want your function can be supported either by android,IOS or desktop? At the begin of design, you need to consider those things. The first thing you may figure out is using html5 to developing. It a good new that WebSocket standard is supported by html5 and also...
0
1,414
thread by: floralincon | last post Aug 3 '17 by: floralincon
Recently, I learned project in designing video search engine using Javascript from Youtube. Here is the link: https://youtu.be/LkHpa4nxfKc
1
1,588
thread by: Shlok | last post Jul 31 '17 by: chaarmann
i want to sort teams and their players pls....show me the solved program to refer...it should a lendi one....
1
2,124
thread by: andy45 | last post Jul 26 '17 by: chaarmann
I typed the code Import java.util.Scanner; and it asked for an identifier near Scanner . what does it mean
2
1,297
thread by: GuruCool12221 | last post Jul 4 '17 by: GuruCool12221
so I've this welcome frame where I've the following things: i) Two radio buttons- single, multi ii) Two labels- Player1 Name, Player2 Name iii) Two text boxes receiving the names iv) Button 'Start !' what I want the program to do is when the user clicks the radio label 'single', the field for player2 disappears and user will enter Player1...
1
1,009
thread by: dante063 | last post Jun 28 '17 by: chaarmann
I want to write a program that displays the number of goals scored by players in a match. I want my program to prompt the user to enter the number of players they wish to display and re-prompt in case of an invalid input. I want to create two arrays of strings one for the name and another for number of goals.
4
1,166
thread by: amirhan | last post Jun 21 '17 by: chaarmann
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String s1,s2; s1=u.getText(); s2=p.getText(); try{ Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"); Connection...
1
1,048
thread by: rspvsanjay | last post Jun 20 '17 by: chaarmann
i have written a javascript code for mobile number and state validation but function is working except mobile number and state validation , where is my mistakes ? <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
3
1,794
thread by: namdeva | last post Jun 23 '17 by: chaarmann
what are the parameter of creating abstract class and how we use in real time ?
0
1,271
thread by: rspvsanjay | last post Jun 10 '17 by: rspvsanjay
I have three code file in which two are the jsp file and one servlet file created as follow : servlet file UploadServlet.java package net.codejava.servlet; import java.io.File; import java.io.IOException;
1
1,207
thread by: hrensimin05 | last post May 29 '17 by: chaarmann
import java.util.*; public class flooring { public static void main(Stringargs) {Scanner flo=new Scanner (System.in); int rooms=getroomnumber(flo,"How many rooms you are flooring: "); for(int i=1;i<=rooms;i++) { System.out.println("Room number: " + i + "\n"); int lenght=getnumbers(flo,"Enter lenght of...
1
1,122
thread by: hrensimin05 | last post May 29 '17 by: chaarmann
I need to set my program to run total at the end of each category from each room . anyone can help? import java.util.*; public class flooring { public static void main(Stringargs) {Scanner flo=new Scanner (System.in); int rooms=getroomnumber(flo,"How many rooms you are flooring: "); for(int i=1;i<=rooms;i++) {...
1
1,114
thread by: CarlaLee | last post May 24 '17 by: chaarmann
Hi guys.. I'm a newbie in java and I try to understand the logic of this simulation I want to control the arrival value of the customer and server. There is no error but the result is mess up. The code did not match with the logic of simulation. Can anyone help me? This is the code that I put inside:
1
1,088
thread by: becwinechick | last post May 15 '17 by: chaarmann
I created a form in google forms that after the user submits I would like the form to go back to a blank form for the next user to populate. The form data already is collected in a spreadsheet after each submission

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.