32,204 Topics
| |
First Of all, I am trying to implement a video conferencing system using JMF. I want to access webcam of a remote computer to take images.I have successfully captured images from my local camera.But when i try to do this from "A" computer to access webcam of "B" computer , … | |
Question: It seems my code won't work while looping. It's a simple password verifier, however entering subsequent passwords will return the same invalid as the previous password. The simple answer might be to set boolean values under the do so they reset everytime the loop runs. But if I do … | |
Hello Dear! Hope You All are doing Fine. i have querry. i am trying to make a program of Bank Account Details with classes and OBjects. i have put change name, change typ, dopist, withdraw options. now i want to see teh history. what name it was before the change, … | |
| |
I'm currently reading about the JVM and how garbage collection works found here: http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html It discusses both the Mark and Sweep and the Generational garbage collection concepts. After reading through this tutorial, I'm confused on which garbage collection process the JVM actually uses. The whole time, I thought the JVM … | |
I am want to delete the first line of text file using RandomAccessFile class. My Input file "bulkwfids.txt" has the data as below: 234567 345578 455678 566667 Expected output needs to be(first line deleted): 345578 455678 566667 But the actual ouput I am getting is as follows: 78 56 345578 … | |
| My code performs separation of "**S12*T0*0832*B*86*N1C0~**S12*T0*0832*B*86*N1C0~"...Next i need to separate data between the "*" and utimately insert it into the database(ms-Access).i would like to recieve some code lines for that. Basically now the entire string i.e"**S12*T0*0832*B*86*N1C0" is being inserted into a column.i need to insert "S12" "T0" etc into separate … |
Greetings, I am new in Java programming language and I know that there are four platforms of the Java programming language Java Platform, Standard Edition (Java SE) Java Platform, Enterprise Edition (Java EE) Java Platform, Micro Edition (Java ME) JavaFX I already read about the four platforms through the below … | |
So they dropped ODBC on Java 8. Thats somewhat a problem for me. I searched to find alternatives and UCanAccess is what looks like to be the most popular. But I was wondering if there are alternatives that are better or equal to UCanAccess? | |
import java.util.Scanner; public class Program2{ public static void main (String []args) { Scanner input = new Scanner (System.in); int[] data = new int[256]; int inAscii; char inChar; String inString= input.nextLine(); for (int i = 0; i < inString.length();i++) { inChar=inString.charAt(i); inAscii=(int) inChar; data[inAscii]++; } for (int i= 1; i<256; i++){ … | |
Hello guys, i never worked before with java and it was told to me to make a solution of cloud computing private for my university and i don't know how or even which How choose the layer to develop. Can you just help me please. | |
Hi.. I’m trying to create circular menu bar,but my menu bar is nearly similar to tympanus circular menu bar(visit [Click Here](http://tympanus.net/Tutorials/CircularNavigation/index2.html)) but in tympanus if we want menubar we must click open/menu button I want menu bar(fixed) to be display without any any clicking and instead of button i need … | |
from starting to end plz guide me its a new for me .Thanks in Adv | |
A freight train has n railroad cars, each of which is going to be left at a di erent station. Assume that the stations are numbered 0 through n | |
hi all how can I make this program to work? it is loopinging and this is wher it stop,it is no reading anything else where have i gone wrong here is the code and the output char F, f, H, h, C, c; double hrswrked, grosspay = 0, netpay, payrate, … | |
theres a couple things wrong with this and i have no clue where to start. like the title says it has to be a really simple mortgage calculator, no gui or any other inputs. not yet atleast. my prof messaged me back saying i need "1. import goes before public … | |
Hi, I have ubuntu installed on my pc with openjdk 8 but as i want to lern java ho can i create programs by openjdk or which is the place to write the coding. Plz suggest me with easy words Thanks,uxama | |
**Here is what I am trying to accomplish with Java:** A simple guessing game asks the player to guess a number between 1 and 50. Hints are returned depending on how far from the number the guess is. Add other methods for playing the game omitted--you need not supply any … | |
char F, f, H, h, C, c; double hours_worked, grosspay, netpay, rateof_pay, total_deduction, deduction, overtime, extra_time; double comm_incent, fixedsalary = 0, taxfree_allow, totalgross_pay, totalnetpay, totalsales = 0; String empfirst_name, emplast_name, hourlypaid_workers, payroll_report, payroll_payslip, process_workers, monthlyfixed_workers; String commiss_workers; int taxes, emp_idnum, highest, lowest,highestpaid_workers, lowestpaid_workers, highestvalue_workers, lowestvalue_workers; char inputChar = 0, Char; … | |
I have been working on role based access control in cloud for which I have coded some java programs. I would like to upload and run those java programs on a real-time cloud. I have no idea about uploading a "file" onto the cloud although i have a decent knowledge … | |
Hi How can I get the maximum digit from a number entered by the user? Example: if user inputs: 1521, the program should output 5 as maximum. Any help please? NOTE: I want it to be made using 2 methods. AND don't give me answers with arrays. :) This is … | |
| I need to write a Java program that uses a Monte Carlo algorithm to calculate the probability that next week’s lottery draw won’t have any consecutive pairs of numbers (e.g. 8 and 9 or 22 and 23). 6 numbers are drawn from 1 to 45. |
Alright, I've never done this before so this may not be the way to go about it, but here goes. I'm creating an Application that connects to a Server which executes SQL Queries. I am coding the Application as a prototype in Java currently and extending it later possibly with … | |
package filehandling; import java.awt.event.ActionEvent; import java.io.*; import java.awt.*; import java.awt.event.ActionListener; import javax.swing.*; public class Filehandling extends JFrame{ JTextArea ja; JButton jb; Filehandling() { setBounds(400,400,400,400); setTitle("azeem"); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container cont= getContentPane(); ja=new JTextArea (); cont.add(ja,BorderLayout.CENTER); JPanel jp= new JPanel(); jb=new JButton ("Save"); jp.add(jb); cont.add(jp,BorderLayout.SOUTH); setVisible(true); } public static void main(String[] args) … | |
Hey, I'm looking for decent MySQL tutorials for connecting a Database in Java. I'm using Java 8 so preferably would like tutorials that correspond with newest code. Thanks! | |
hi :) I'm wondering >>what is the use of (static) word in func.'s ? in this code what does it mean ??and if I didn't put it what would happen then ?? thanks :) import java.util.Scanner; class Average { public static double compute(int...x) { double sum=0; for(int item:x) sum+=item; return … | |
Hi Guys! I'm having trouble on briefcases having the same value. for ex: i choose briefcase 1 = 5000, briefcase 2 = 5000 how do i make the briefcases have a unique value? Note: the value of briefcases are randomized import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DoND extends … | |
help me to write java code for reading recieved packet details such as source ip,source port | |
Hi, I want to learn java as young but i use Arch linux since i was kid so how can i get the emulator or what required softwares.I have java 7 installed. Reply as soon as possible to noob guy. Thanks,uxama |
The End.