35,618 Topics

Member Avatar for
Member Avatar for oberle1515

Need to write a program that will print two patterns: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 and 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 …

Member Avatar for pritaeas
-1
478
Member Avatar for lena1990

hi all, i want to create a program that transmit voice something like skype but i have a problem , there some basics like how to get the voice and how to send it i found source code but i did not understand it. thanks in advance.

Member Avatar for JamesCherrill
0
135
Member Avatar for mukta.dhiman

I want to code a client server program using socket programming in which the server returns the client's network information back to the client.

Member Avatar for JamesCherrill
0
173
Member Avatar for shubham.goel.41995

I want to make a project on online examination which have some similar view like amcat and also have a view which run programs online.

Member Avatar for invadev
0
285
Member Avatar for rahul8590

I am able to write a java program to access a particular url , and get the data , but the data is in raw format and the complete source is printed in the terminal . import java.net.*; import java.io.*; public class URLConnectionReader { public static void main(String[] args) throws …

Member Avatar for invadev
0
300
Member Avatar for rose88

1. A company wants to transmit data over the telephone. All of the data are transmitted as four-digit integers. The company has asked you to write a program that encrypts the data so that it can be transmitted more securely. Your program should read a four-digit integer and encrypt it …

Member Avatar for jwenting
0
234
Member Avatar for ckide
Member Avatar for kumar.rupesh

Hi Friends, Please share your's experience about best supporting programming language for BigData & Hadoop. I'm also doing some research about this topic plz contribute your idea & experience for this topic. Regards, Rupesh

Member Avatar for kumar.rupesh
1
230
Member Avatar for snowy365

I know very little aboout coding and less of Java Logic says I should be able to do something like this: int i; String taxFileNumber; System.out.printf(" Enter Tax File Number (TFN): "); for(i = 0; i < TFN_SIZE; i++) { if(i == 3 || i == 7) { taxFileNumber.charAt(i) = …

Member Avatar for JamesCherrill
0
150
Member Avatar for nabilmahesaniya

Hey friends, i have just started with my java classes but im finding it quick tricky so is there any books availabe for dummies

Member Avatar for raj.mscking
0
156
Member Avatar for stikku

Is it possible to call repaint() inside the main()?I have tried the code below.But its not working public mypanel() { initComponents(); repaint(100,150,40,40); } protected void paintComponent(final Graphics g) { final Graphics2D g2 = (Graphics2D)jLabel2.getGraphics(); g2.drawRect(100,150,40,40); } //above code doesnt provide any output private void formMouseClicked(java.awt.event.MouseEvent evt) { repaint(100,150,40,40) } this …

Member Avatar for JamesCherrill
0
259
Member Avatar for ayushi_1

i am pursuing engg. (3rd year).i want some suggestion regarding my minor project.My proofesors want some unique point in my project so suujest me some project with unique in that.

Member Avatar for danie93
0
146
Member Avatar for pankajagar2002

Hi, We are facing font issue in our java swing application in linux. Kindly help to solve issue. In our application we are explicity setting font as 'Arial' for labels and others in swing Application. Since Arial is not available in linux so it picks 'Lucida Sans Regular' as default …

Member Avatar for iamthwee
0
763
Member Avatar for HelpMEPLZ!!!

Hi everyone My code is still a bit messy as I;m pressed for time. I have to write a simple game you play against the computer. I have my StartGUI class which instantiates the GUI and then I have a Game of Life class, which does not have a JFrame, …

Member Avatar for HelpMEPLZ!!!
0
316
Member Avatar for Dae14

Write a program that will allow tutors to record tutoring activities. A tutor needs to keep track of who come for help (name, student ID), started at what time (sign-in time), ended at what time (sign-out time), for what course, his/her professor name, a short description of the problems he/she …

Member Avatar for HelpMEPLZ!!!
0
202
Member Avatar for JavaPadawan

I'm working on what I thought was a straightforward program to accept user inputs and store them in an ArrayList. I created a separate class containing an object and a constructor (first name, last name, and an integer). In the main method, I prompt the user for input within a …

Member Avatar for arnab.batabyal.54
0
22K
Member Avatar for soujanya.bhat.184

Hi All, I am learning Multithreading in Java and came across this code using SwingWorker for GUI multithreading. Here is the modified code done by me. import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingWorker; public class MainFrame extends JFrame { …

Member Avatar for mKorbel
0
362
Member Avatar for Nandomo

So basically I am writing a tic tac toe program in java which is peer to peer using tcp sockets. The data I am transferring has to be encrypted and checksummed. I know how to implement both, yet I do not know in what order to do it in. Should …

Member Avatar for stultuske
0
220
Member Avatar for Jjaus

I need the code for this Pseudocode AccountBalance Begin Get starting balance Get withdrawal amount If withdrawal amount > starting balance Then Display “Insufficient funds” Else final balance – starting balance – withdrawal amount Display “saving account balance is low End If End

Member Avatar for Jjaus
0
213
Member Avatar for Pobunjenik

Hi everybody, I'm back and I bring problems. :D I've done a fair bit of research - I know Android can't run JRE 1.7, and I know JRE 1.7 is needed to get Java to read SQL. I've got this project that says I need to make a way for …

Member Avatar for Pobunjenik
0
327
Member Avatar for jontposton

I am trying to get my method to return to the main. I have tried return statements but when i run it all it gives me is nothing. It just follows what the main method has but the other methods do not get to return to the main method so …

Member Avatar for jontposton
0
198
Member Avatar for brittney_2

So, I am trying to test my if else with two Character.toUpperCase answers and I keep getting this error: 1 error found Error: bad operand types for binary operator '^' first type: char second type: boolean I tried && and & and it won't work. If I don't use anything …

Member Avatar for Pobunjenik
0
140
Member Avatar for pwolf

I was following along to the following tutorial - [Derek Banas Java tutorial 18 - Threads pt2](http://www.youtube.com/watch?v=G2Xd5avyk_0) and as I decided to go over his tutorial series by following along in notepad++ and compiling with the command line, so that I can experiment and test things I'm unsure about, I …

Member Avatar for pwolf
0
1K
Member Avatar for Varunkrishna

Hi all I am writing a java program to display the dob of sportsperson, now I have use the java.util.Date to display the date on to the consloe. But since it is deprecated I wish to use some other method to get and display the date from the user. Here …

Member Avatar for jwenting
0
378
Member Avatar for hira.jehangir.3

if input is given like (5,4,6,3) it returns 4,5,3,6 but i want it to return like 3,4,5,6....kindly help. import java.util.Scanner; public class sort { public static void main(String args[]) { int rows; int cols; Scanner input = new Scanner(System.in); System.out.println("Enter number of rows u want in matrix "); rows=input.nextInt(); System.out.println("Enter …

Member Avatar for JamesCherrill
0
5K
Member Avatar for ameer.mhmed

how to write code in java this statm if public String pass (){ b =txt_pass.getText(); if ("ameer".equals(b)) JOptionPane.showMessageDialog(null, "the password is correct"); return b; } how to make this **if (user ()) retrun a ** JOptionPane.showMessageDialog(null, "the password is correct");

Member Avatar for stultuske
0
119
Member Avatar for paeez

can any one explain about the below code which is Dining Philosophers Problem.. [CODE] //Dining Philosophers Problem import java.util.Random; class Monitor { int phil_States[] = new int[5]; // 0=not_waiting, 1=waiting // 2=eating boolean fork_States[] = new boolean[5]; // false = in use, true = free Monitor() { // constructor for(int …

Member Avatar for S1nfulAngel
0
1K
Member Avatar for ZixCo

Hi. I am making a program and I started at the first example for sphinx 4. I can't even run the program becouse I get an error:new ConfigurationManager(args [0]) so I can't even run the program. Please help. Here is my code: import java.net.URL; import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; import edu.cmu.sphinx.frontend.util.Microphone; …

Member Avatar for JamesCherrill
0
162
Member Avatar for sankubha

how to reduce memory usage of java application...it takes 18 mb memory when started,when i starts new thread it takes 47 mb of memory .After i closed the started thread ,the memory is not reduced to 18 mb. It still stays at 47mb of memory usage.

Member Avatar for masijade
0
464
Member Avatar for thorin

I am getting a very mysterious bug when I run my java website in Browser Mode: IE9 Compatibility View - the sessions stop working and I have no idea why. I don't think there is a tag or any code that I can include in my website that can force …

Member Avatar for thorin
0
619

The End.