31,001 Topics

Member Avatar for
Member Avatar for shifat96

Hello, I have a Computer Science project for school. I am done writing the full code but I am missing one of the requirements. Some of the text have to be aligned to the right. Here's an excerpt from my code which I want to change the alignment: [CODE] System.out.print …

Member Avatar for shifat96
0
874
Member Avatar for zina_a

hi, I have to make an application in java to access the switch of the my company and show his details(host name,IP adress,MAC adress,time fonctionnemnt...),also if any one tell me how can I make it,some samples in java abouth that would be helpful.

Member Avatar for zina_a
0
165
Member Avatar for jot121

here is the details I got: 1. Create a class called 'GuessMyNumber'. The constructor should chose a random number between 1 and 100. There should be a method 'guess(int guess)' that returns -1 if the guess is too low, 0 if the guess is correct, and 1 if the guess …

Member Avatar for NormR1
0
213
Member Avatar for RLS0812

It's going on 4 hours now, and I have yet to find an answer on how to do this. All I want to do access and manipulate data in a list, from another class. The 2 classes: [B]GetList.java[/B] [CODE]public class GetList { public static void main(String args[]) { MakeList xx …

Member Avatar for FALL3N
0
304
Member Avatar for TIM_M_91
Member Avatar for riahc3

Hey I want to use something like Dreamweaver to design a HTML page. (Excluding all the links to pictures and such) how do I get Java to get all that and convert it to a well designed PDF document like I was seeing in Dreamweaver? Thanks

Member Avatar for peter_budo
0
310
Member Avatar for tharindupro
Member Avatar for newbie14

I have socket connection which keep reading data and then it will send it via a queue for next processing in another thread. I notice at times it just stop sending data to the queue. I will print this System.out.println("\n\nSending TO QUEUE : "+message); and stop but I do not …

Member Avatar for JamesCherrill
0
371
Member Avatar for devin2203

I needed to implement a simple cyclic graph in Java so it have nodes in such a way that it can be implemented to represent adjacency matrix or list. Any advice or resources to hep me start implementing this would be much appreciated! Many Thanks

Member Avatar for NormR1
0
281
Member Avatar for dsmith12

So my code is suppose to get information from the user and figure out how much funding the two professors get. My code runs twice but for some reason only the last entry is saved and outputted and my formula for calculating the new funding only outputs zero for some …

Member Avatar for stultuske
0
213
Member Avatar for riahc3

Hey I have a folder in my current working path and I want to make a copy of a file inside it to the the current working path. Its kind of a dumb question, I know, but how do it do it? Thank you.

Member Avatar for riahc3
0
208
Member Avatar for riahc3

Hey I have this following code: [code] try { // Connection props Properties props = new Properties(); props.setProperty("mail.smtp.host", host); props.setProperty("mail.smtp.starttls.enable", "true"); props.setProperty("mail.smtp.port", "25"); props.setProperty("mail.smtp.user", usuario); props.setProperty("mail.smtp.auth", "true"); // Prepare the session Session session = Session.getDefaultInstance(props); // Constuct the message MimeMessage message = new MimeMessage(session); /*Test*/ message.setHeader("Content-Type", "multipart/mixed"); message.setFrom(new InternetAddress(CorreoOrigen)); message.addRecipient(Message.RecipientType.TO,new …

Member Avatar for riahc3
0
205
Member Avatar for Tango2010

Hi All, I wonder if anyone can help - I have been teaching myself Java GUI programming using a Mac running OSX Lion and Netbeans 7, and have followed the tutorial: [url]http://netbeans.org/kb/docs/java/gui-functionality.html#Exercise_2[/url] When I run the program, it builds and compiles fine, but only appears when I choose the command …

Member Avatar for Tango2010
0
154
Member Avatar for mohamed moamen

I'm send sound between two clients via UDP server Socket , How i can make users not feel the delay of sound ?

Member Avatar for JamesCherrill
0
90
Member Avatar for abhijeet P

Hello all, I have a code to encrypt data in C# and I want it to b decrypted in Java... following is the C# code [CODE]string Encrypt(string textToEncrypt, string key) { RijndaelManaged rijndaelCipher = new RijndaelManaged(); rijndaelCipher.Mode = CipherMode.CBC; rijndaelCipher.Padding = PaddingMode.PKCS7; rijndaelCipher.KeySize = 0x80; rijndaelCipher.BlockSize = 0x80; byte[] pwdBytes …

0
72
Member Avatar for shean1488

Hi everybody. I have a class Sudoku. And puzzle stores 2D array of type Cell. [CODE]public class Sudoku implements Iterable<Cell []> { private Cell [] [] puzzle;[/CODE] What I want to do is to iterate through the puzzle in different class (SudokuValidator): [CODE]public class SudokuValidator { private Sudoku puzzle;[/CODE] how …

Member Avatar for JamesCherrill
0
110
Member Avatar for mpcon
Member Avatar for syareza

program can receive an input value is between 0-9 and then print the multiplication table for its : example if input :7 output : sifir 7 1 x 7 = 7 12 x 7 = 84 please help me....

Member Avatar for syareza
0
79
Member Avatar for adams161

Hi, On windows, i don't see a maximum button on my JDialogs and this is fine, but on a Mac I have this dialog that people can keep up and use other windows, but you can also maximize a dialog on a mac apparently. There is a maximum button. At …

Member Avatar for adams161
0
158
Member Avatar for firecy

I've been programming in Java for a few years now, and I've always wanted to be able to run my programs on computers without the JDK installed. I've been trying to make an executable .jar file, and it seems to work on my computer(the one with JDK installed). However, as …

Member Avatar for NormR1
0
228
Member Avatar for RiddoKun

[CODE] import javax.swing.JOptionPane; public class Finance { public static void main(String[]args) { boolean Access = false; String studentName = JOptionPane.showInputDialog(null, "Enter in your name: "); //String current = JOptionPane.showInputDialog(null, "Enter your password: "); //double currentBalance = Double.parseDouble(current); Account newAccount = new Account(studentName); //Gains access to Account class JOptionPane.showMessageDialog(null, newAccount.toString()); } …

Member Avatar for RiddoKun
0
94
Member Avatar for kyriacos1986

I want to read from the keyboard the first name and last name of a member separated by space I have tried the following but it doesn't work. [CODE] public static void updateWeight() { Scanner in = new Scanner(System.in); // Creation of a new Scanner object String tempName = ""; …

Member Avatar for NormR1
0
180
Member Avatar for Goldfinch

Hi, I'm trying to read a file, line by line, into an arrayList, assigning a different line to each element and ensure that: 1. It's actually happening (which is the reason for the println statements) 2. that the scope of the arrayList with the string elements filled in is sufficient …

Member Avatar for Goldfinch
0
963
Member Avatar for TIM_M_91

Hi Guys well what I want to do is instead of within my writeString to set my PLAYCOUNT to '16' what I want to do is every time the statement is executed my PLAYCOUNT is increased by 1. Any help you can give would be appreciated: My code is below: …

Member Avatar for TIM_M_91
0
171
Member Avatar for freedomflyer

Earlier on, in [URL="http://www.daniweb.com/software-development/java/threads/412571"]this thread[/URL] my question was answered about how to add objects of a custom class I called State into a HashSet which was a value for a key in a HashMap. [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, I need to ensure that there are only …

Member Avatar for JamesCherrill
0
341
Member Avatar for 47pirates
Member Avatar for JamesCherrill
0
189
Member Avatar for chamnab
Member Avatar for SasseMan

I'm searching for a java library/framework that makes printing easier. By easier I mean something that makes it possible to layout and format text/images and other elements in a document by defining layouts in html/xml or something. I also want the layout to be decoupled from rendering so the document …

0
95
Member Avatar for Tuz

can someone tell me how can i do arrylist(of three classes) in one class ??

Member Avatar for stultuske
0
255
Member Avatar for justindill

I definitely need assistance with homework assignment: I seem to have a lot of issues creating a program when I have to use JOptionPanes(s). After the instructions is my current code. 1. Design and implement a Java program that will gather integer numbers and performs some computations on the data …

Member Avatar for zeroliken
0
606

The End.