32,204 Topics
| |
What are the benefits that JVM brings to the development and deployment of server applications | |
hi everyone im studing computer science , i have question about margeSorting i do not undrstant how it going ??? i do not know where i shold put my question public static int[] mergeSort(int[] a) { if (a.length == 1) { return a; } else { int n = a.length … | |
hello everybody; up to what level can I use javascript (taking advantage of the strength of phonegap or Titanium) to create an android application. ex 1:can I create or run a service (in the android sense) !!! ?? or can I access to the GSM properties like provide package android.telephony.gsm. … | |
I'm having some issues with one of my bonus assignments for school. In my code the purpose of the project is posted, but this is what I have so far. /******************************************** *File Name: Combination (Assignment 8 Part 1) *Purpose: Create a frame with ten buttons, labeled 0 through 9 (Hint: … | |
So here's a bit about the details. I need to read the contents of file A, and B and store it in file C by joining the contents of A and B and also counting the number of letters/characters present in it. I've come up with this so far. Can … | |
So I am writing a program to read text from a file. Save from an array list to an array and then parse that array for ',' and use that to change words position in the 2d array i will write from the 1d array. So essentially String[]{"a,b,c","d,e,f"} ought to … | |
I am trying to figure out where is Java and C# mostly used? I read that enterprises favors Java and JEE, but they don't say anything about JSE. I also read that C# is being used a lot, especially on Windows platforms. But the question remains, what do enterprises use … | |
I'm trying to make this as easy as possible but I'm stuck. Inside the for loop, if the input entered was not a number or wasn't valid, it moves on, but I don't want it to. I want it to repeat that interation. Is there a possible way to do … | |
I am now on part 3 of a payroll program for my Java class but I did not add the while loop in last week so I need to figureout what I did wrong so I can do part 3. The program should loop until the user enters "stop" It … | |
sir , I have need to start a thread on click of submit button on my jsp page. I am using Java Bean for Codeing. please write small program to start thread on button click of jsp page. Thank you....... | |
package dmaze2; import java.awt.Dimension; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; public class Dmaze2 extends JPanel { JTable jt; ImageIcon Icon = new ImageIcon("x.png"); JTable imagelabel = new JTable(Icon); public Dmaze2() { Object[] columns = {"1","2","3","4","5","6","7","8"}; Object[][] table={{"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","o","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}, {"f","f","f","f","f","f","f","f"}}; … | |
// Convert Celsius to Fahrenheit and vice versa. import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JTextField; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class ConvertTemp extends JFrame { // instance variables JLabel labelFahr; JLabel labelCels; JTextField textFahr; JTextField textCels; JButton conFahToCel; JButton conCelToFah; public ConvertTemp () { super … | |
I was doing my 2nd assignment to create a bank program using Java. I got a problem when I run a few times. For example, I entered the starting amount as $50000. Then, I choose withdraw. I tried to enter withdrawal amount as $5000. Then, I choose to check balance, … | |
Is there ay inbuilt method to convert 2D array into CSV file? e.g. Can anyone give me a hint to convert [1,2;3,4] into a file output.csv? | |
some people says that java is not purly oops language like C++.pls suggest me if it is true then why iot is so? | |
I am writing a program that will open another form, the user will continue doing stuff on the new form and would then close the form. When and only when this new form closes, the main form should continue with its work and re-enable some components. Here is the code: … | |
I am trying to read a some data that is stored in an xml file and then print it to the screen for the user. But my program isn't working correctly. Here is my XML document: <UserAccounts> <Account AccountNumber="1234567890"> <Password>12345</Password> <Balance>1024.64</Balance> </Account> </UserAccounts> And here is my code: File fXmlFile … | |
I have been struggled to solve this problem for few days, i was working on multichat application where in this class i want to send the text to the server and and response in the client side, if anyone can help me i really appreciate from what i known the … | |
hi: we use system("cls") function in c++ i need a function or a class or any command that i give it in my code that clear my screen plz help me | |
Hi, I picked up this code on daniweb and am trying to get it further. Here's the class import java.util.*; import javax.swing.*; public class LibraryBook { private String title; private String author; private int pageCount; //contructor for books title, author, page public LibraryBook(String bookTitle, String bookAuthor, int bookpageCount) { title … | |
This is the last part to my assignment and when I go to compile the last part I come up with 7 errors unsure what it is that it wants me to do. The errors are: C:\Users\Owner\Desktop\week9 part6\Inventory6.java:212: error: illegal escape character strPrice = strPrice.replaceAll("\$", ""); ^ C:\Users\Owner\Desktop\week9 part6\Inventory6.java:270: error: … | |
I am trying to create a File Searching Utility that finds all Files with a given Name which searches all Folders (Sub Directories, and Sub Directories of Sub Directories) in a given Directory. I was thinking of a way to use For Loops, or For Each, but that would mean … | |
Hey there good people. well i have implemented the whole code of compiler phase 1. Have implemented al the DFAs and most are working fine. But this comments DFA is giving me grief. What it should do is, it should ignore anything written between { } . but it's not … | |
How to create a method that takes input string and returns the most frequently occurring letter(s) in string? **Prototype of the function:** public String Duplicate(String str) **Constraints:** 1. If there are two or more letters which are most frequently occuring, then return all possibilities in the output. 2. The input … | |
i have to find a round trip for an Edinburgh bike club (data below) using two approaches: a) a conventional search algorithm; b) a genetic algorithm What i must do : 1. Produce a program using a search algorithm of your choice that will find a ‘good’ circuit from Edinburgh … | |
Hi all, I have a multi-threaded program. This program, lets say spawns 10 threads. I would like to update a variable when each thread finishes its job. The reason why I am asking this, is because I would like to show something like progress bar (not really a progress bar, … | |
| |
i just learn about single linkedlist and i am trying to create a program. public class linklis { public static void main(String[] args) { LinkedList ab= new LinkedList(); ab.add("1"); ab.add("2"); ab.add("4"); ab.add("7"); System.out.println("the list" + ab); System.out.println("remove 2nd element: " + ab.Delete(2)); System.out.println(" - print linkedlist size: " + ab.size()); … | |
Hello everyone, I got a small question on encryption, actually I am trying to learn the various techniques to encrypt a message. Now I am trying AES, using the built in security package in Java. The problem is that I am having a problem with this encryption algorithm. Actually I've … |
The End.