35,619 Topics

Member Avatar for
Member Avatar for cngerra

I'm still a noob in JavaFX, I can print the content of the table that I query, the problem is that I want the content to be placed inside the tableview. This is the code that I have done. public class TableViewController implements Initializable{ @FXML private TableView<studentInfo> tblViewer = new …

Member Avatar for bharath_5
0
7K
Member Avatar for prem2

Dear all, I am using linux fedora os. But i cannot able to set the java Classpath command. Step 1: whereis java java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz Step 2: vi .bash_profile export JAVA_HOME=/usr/bin/java export PATH=$PATH:/usr/bin/java Step 3: java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Server …

Member Avatar for sepp2k
0
2K
Member Avatar for Farhanalee

Write a program that reads a word and prints the number of syllables in the word. For this exercise, assume that the syllables are determined as follows: Each sequence of adjacent vowels a, e, i, o, u, y, except for the last e in a word, is a syllable. However, …

Member Avatar for iamthwee
0
303
Member Avatar for divinity02

hi guys I am practicing a java program and it goes like this. I am trying to this as a practice JAVA Object-Oriented program for a rental car company to create an inventory file(.txt) as a random access file which can easily be updated by users for the following specifications: …

Member Avatar for divinity02
0
180
Member Avatar for lena1990

hi all, i want to convert array of short to array of bytes in order to send it in Datagram Packet and then convert it from bytes to short

Member Avatar for JamesCherrill
0
359
Member Avatar for divinity02

hi guys havent been here for a while, but I have a question for you all. 1. how do you write a java object-oriented program 2. is it the same as a java program or different 3. does it have any similarities between both program

Member Avatar for divinity02
0
324
Member Avatar for Winston_1

I am having trouble writing the below java application. Here is what i am trying to accomplish Write a Java program that prompts a user to enter demographic information including year of birth (values 1900-2014), month of birth (values 1-12), day (value of 1-31) of birth, latitude and longitude of …

Member Avatar for rubberman
0
296
Member Avatar for ali11

GregorianCalendar cal = new GregorianCalendar(year, month, 1); nod = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH); som = cal.get(GregorianCalendar.DAY_OF_WEEK); for (int i=1; i<=nod; i++){// plz explain this line int row = new Integer((i+som-2)/7); // plz explain this line. int column = (i+som-2)%7;// also this line. mtblCalendar.setValueAt(i, row, column);

Member Avatar for JamesCherrill
0
134
Member Avatar for iamthwee

So a lot of threads begin by some noob coming along and asking is c++ or c or java going to die and almost certainly, the answer, all have stood the test of time and this is simply panic nonsense spread by the spin doctors. http://www.infoworld.com/article/2613404/java/how-to-kill-java-dead--dead--dead.html But then it got …

Member Avatar for iamthwee
0
494
Member Avatar for Devesh_2

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 , …

Member Avatar for iamthwee
0
725
Member Avatar for SkateX

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 …

Member Avatar for SkateX
0
561
Member Avatar for Akrhoo

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, …

Member Avatar for stultuske
0
80
Member Avatar for Qaim
Member Avatar for Compton11

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 …

Member Avatar for mike_2000_17
0
221
Member Avatar for saurabh.mehta.33234

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for boddupallianvesh

i am working on a project. i have database and it has 20 coloumns for each row. i display rows in form of table. in table i am retrieving data from database and displaying it. <% While(special.next()){ %> <ul class="features"> <li><%= special.getString("company")%></li> <li><%= special.getString("catagory")%></li> <li><%= special.getString("place")%></li> <li><%= special.getString("verified")%></li> <li><%= special.getString("phone")%></li> …

Member Avatar for milil
0
2K
Member Avatar for Sara_9
Member Avatar for amogh.max

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 …

Member Avatar for JamesCherrill
0
185
Member Avatar for AmrMohammed

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 …

Member Avatar for JamesCherrill
0
195
Member Avatar for CodeWarrior14

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?

0
72
Member Avatar for Trevor_5

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++){ …

Member Avatar for Trevor_5
0
253
Member Avatar for chahinez.abdelo.9

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.

Member Avatar for chahinez.abdelo.9
0
490
Member Avatar for punith_1

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 …

0
149
Member Avatar for manishgalav02
Member Avatar for java786

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

Member Avatar for stultuske
0
743
Member Avatar for divinity02

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, …

Member Avatar for stultuske
0
238
Member Avatar for Ed_4

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 …

Member Avatar for stultuske
0
244
Member Avatar for muhammad_74

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

Member Avatar for muhammad_74
0
355
Member Avatar for Britto_1

Dear All, I need to choose the value of a list item in jsp. There are many employees in various departments and i need to choose that employees in department wise. Example. I have two list items in jsp 1. Select dept_no,dept_name from departments 2. SElect emp_name from employees, departments …

Member Avatar for Britto_1
0
149
Member Avatar for amc2244

**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 …

Member Avatar for Sugmuffen
0
631
Member Avatar for divinity02

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; …

Member Avatar for divinity02
0
125
Member Avatar for null_pointer

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 …

Member Avatar for Slavi
0
509
Member Avatar for subone

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 …

Member Avatar for JamesCherrill
0
11K
Member Avatar for mickdrealist

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.

Member Avatar for iamthwee
0
2K
Member Avatar for Doogledude123

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 …

Member Avatar for Slavi
0
294
Member Avatar for haider885

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) …

Member Avatar for mKorbel
0
312
Member Avatar for Doogledude123

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!

Member Avatar for JamesCherrill
0
381
Member Avatar for shahera.arafat

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 …

Member Avatar for shahera.arafat
0
401
Member Avatar for EarhawkPH

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 …

Member Avatar for iamthwee
0
418
Member Avatar for riyamanavalan@g

help me to write java code for reading recieved packet details such as source ip,source port

Member Avatar for JamesCherrill
-1
97
Member Avatar for muhammad_74

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

Member Avatar for muhammad_74
0
460
Member Avatar for newbie26

hi everyone, im new to java. and i was assigned to do a project that integrates java and .net(c#). here's the scenario: 1. the .net system will create a text file (.txt) based on some conditions --> i already did this part. 2. the txt file will then be pass …

Member Avatar for mueller-bruehl
0
259
Member Avatar for priyanka_10

Hi, I just wanted to know about instance method? If static modifier is not applied before does it makes it an instance method ? Plz give an example Thanku

Member Avatar for newcoder310
0
166
Member Avatar for MrCapuchino

Hi I have a Select element in my page, It looks like this [CODE] <select name="test"> <option value="1">Hi</option> <option value="2">Hello</option> <option value="3">GoodBye</option> </select> [/CODE] Ok, don't mind the syntax or if I missed something, everything works fine, the problem is that I want to get the selected option value from …

Member Avatar for vinay.yash.3
0
6K
Member Avatar for shahera.arafat

hi ^_^ I want to ask what is the difference between (System.out.println(B);) and (System.out.println(new string(B));) ?! actually it gives me the same output in my code! so then >>what is the use of [new string(array)] in general ??? thank U :))) public class CopyArray { public static void main(String[] args) …

Member Avatar for JamesCherrill
0
391
Member Avatar for servent123

Hi there , We know that we can use taglibs in JSP page. Is it possible to refer tlds and its tags from the servlets. Can we have control over the taglibs in the servlet programmatically ? I googled but invain. All the results are about creating custom taglibs. Any …

Member Avatar for servent123
0
343
Member Avatar for adams161

Hi, I'm considering writing a java applet that has a chess board and lets people solve puzzles. There are chess engines that are free that could be the AI to play against and they come in executable files (console apps) compiled for both Mac and Windows. Now i have a …

Member Avatar for iamthwee
0
508
Member Avatar for Kumar Gaurav_1

I have generated wsdl2java code using axis 1.4 .One classes has 2 constructor methods (one default constructor and other one has 2 parameters). Other classes that inherit from one class have the constructor parameters in the wrong order.The schema files is correct as they come from the OTA specification Please …

0
188
Member Avatar for ShaneJ33

I am missing something in my check sub class and I can't figure it out I know its something simple and I for the life of me can not find it. package lab61; public class AccountClass { public double annualInterestRate; public double balance; public int Id; public java.util.Date dateCreated= new …

Member Avatar for ShaneJ33
0
562
Member Avatar for ali11

everything is working fine except Encryption button. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; public class encryption extends JPanel implements ActionListener { char [] str= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' }; char [] str1={'1','2','3','4','5','6','7','8','9','0','!','@','#','$','%','^','&','*','(','_','_','+','=',',','.','?'}; char [] a= new char [50]; char [] b= new char …

Member Avatar for JamesCherrill
0
279

The End.