32,204 Topics
| |
Hi apostrophes not displaying in SOAPUI,Am using Java ws to display output in SOAPUI, am facing the problem in displaying apostrophes('), its displaying '&'. any suggestion please. | |
I need to revise a previously written code with a class I just wrote. My Program: import java.util.Scanner; import java.util.Arrays; public class ModifiedLab7 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("How many points? "); int n = input.nextInt(); double[][] points = new double[n][2]; for(int i … | |
Ok I am making a user interface for Battleship and want a Frame to appear on the side with the title and instructions of the game in a disabled JTextArea. With the code I have now I can get the JFrame to open blank. The JTextArea only appears if I … | |
Allright. It's me again. :D This time, I'm making an alarm clock program. I've already completed the bit that gets and displays the system time: Date vrijeme = new Date(); int sati = vrijeme.getHours(); int minuti = vrijeme.getMinutes(); int sekunde = vrijeme.getSeconds(); Also made a method that compares that time … | |
I need help creating my moneydriver. requirements: 1- the driver class should create an array of 5 objects. 2- must use loop to determine which Money object has the most amount of money. 3- I need to use compareMoney() method for my comparison. I start building my MoneyDriver but need … | |
Hi, i am trying to write a program in java where i would concatenate a CREATE TABLE statement with my values from the first row of excel file and hold the fields name to create the SQLStatement. To be more specific i would like to create a table to store … | |
I've a problem to my linkedlist at line 10. Can anyone help me to solve it? Thank in advance. ![edcc2efd2d7051037a9a147491e15671](/attachments/large/3/edcc2efd2d7051037a9a147491e15671.png "edcc2efd2d7051037a9a147491e15671") This is my code : package linkedlist; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class LinkedList { private String firstName; private String lastName; private static LinkedList<LinkedList> classRoster = new … | |
Basically i have literally just started learning Java Script and i was seeking some help as to how i could repeatedly display the character "X" any given number of times using a function. Here is what i have so far: function makex(8) { var resultStr = ""; for (var xcount … | |
Hi every body, I am trying to parse an xml file with sax parser in java and then fulfill a Jtable with the XML elements. The parsing is well done, the Jtable is created but the problem is that all the elements are placed in the same row and the … | |
I just needed some assistance on formatting the output into a specific fashion. I satisfied all the requirements of the assignment, except the output. I apologize for the bad format of this post, any suggestions and help is greatly appreciated. I need the output to look like: Mr. Random - … | |
Hi, I am looking to write a internet scraper, and have considered the following languages: Python C++ Java The scraper will need to: - Retrieve HTML code from a page - Select a link, name and description from a section of the page - Ask for user confirmation (non gui … | |
Hi all, I was reading a few things on the net about how to calculate a leap year in java (and not only for that matter). So something like `...if( year % 400 == 0 || ( year % 4 == 0 && year % 100 != 0 ) )...` … | |
Hi I wonder if somebody can help me to understand a few things in the following example: // Fig. 8.17: PackageDataTest.java // Package-access members of a class are accessible by other classes // in the same package. public class PackageDataTest { public static void main( String[] args ) { PackageData … | |
I have created one GUI.java file inside it i have written a code of GUI,which includes filechooser and button. I also have created logic.java file, inside it i have write my logic for performing some operation. On the click event of button, i want to pass a path chosen by … | |
Hello, I'm trying to create a driver for the money class. I need to create and array of 5 money objects. Also I need to use a loop to determine which money object has the most amount of money using "compareMoney()" class: public class Money { private int dollars; private … | |
i am trying to use recursion to find the occurence of a specific character in an array of characters public class CharacterCounter { public static void main(String [] args) { char test[] = {'a', 'b', 'a', 'c', 'd', 'a', 'e', 'a', 'f', 'g', 'h', 'a', 'i', 'a'}; char searchChar = … | |
hi everyone :) im hoping to learn a healthy amount of vb10/12 by the end of the month. mainly to improve my cv and get a better shot at jobs. originally wanted to learn vb6 for a college project , but after a post in daniweb , my ideas are … | |
I am writing a program, and the solution I have involves deleting certain elements from an array until there are none. My code is below, but the error it shows is no return statement. This is because I don't have an else statement for some ifs, does anyone know how … | |
i just say some using "this." in setter, getter and constructor method. i have never done this so is this good prative to use "this" in getter or setter. ex: public test(int ix) { this.x = ix; } or public int getX() { return this.x; } | |
Write a java code, Extend class Fraction by adding methods for the arithmetic operators +, - and /, and the six relational operators (==, !=, <, >, <= and >=). Then compute a menu-driven fraction calculator. Program shoud do all 9 arithmetic operations and 0 to stop. User should first … | |
[B]How to convert text in an Image to Text and save it in .txt or .doc format. If there are any open source please help me out....[/B] | |
I have a java class for enc/dec in DESEDE; for some cipher texts it results in this exception: Input length must be multiple of 8 when decrypting with padded cipher I have not written this code myself I have found it in a thread in this website; could anyone please … | |
I am working on an insurance html site with flash slideshows that lead to embedded Iframe (java) for enrollment. The embedded page starts with a link that needs to be clicked before the user can continue. the link states "javascript:WebForm_DoPostBackWithOptions(new%20WebForm_PostBackOptions("LoginCtrl$NewEmployeeLink",%20"",%20true,%20"",%20"",%20false,%20true))" Is there a way that I can have my parent … | |
Hi, I'm working on my final project and I'm almost done , but I notice error in my program I have JList and csv file the user load the file then the user can add new item to the JList they need to enter the id,title,publisher ..etc the problem is … | |
Hey guys! I have a project for school that involves changing the code I posted under this. One problem that I cannot figure out is how I would convert the mouse listener to a key listener. I believe the checkEmpty, moveTile, and exchangeTile methods will have to be coded differently … | |
Is it possible to merge both the 2 element below so that they work on a single page. What i mean is this should be the background of the page: http://tympanus.net/Development/AnimatedResponsiveImageGrid/index3.html and a slideout contact form can appear at the corner over the background: http://www.building58.com/examples/tabSlideOut.html Is it possible, how? | |
Hi, I have a csv file that looks like this: Date, Cost Jan 12, 23.2 Feb 2, 45.3 May 4, 33.4 March 3, 32 May 9, 21 July 22, 332 Aug 3, 765 I am using scanner to read the file and can do that with no issues. Howevet, I … | |
i want to create 2 items on screen. each item will be different color rect. item1 = green rect item2 = blue rect if user get the 1st item. than it will print bullet1 1st image. if user get the 2nd item. than it will print bullet2 2nd image. bullet1 … | |
Hello! I have made a java program in Netbeans IDE (version 7.1). I want to make a file that could run my project without IDE (with the help of just Java, JRE, etc).... I had made a JAR file to try this, but when I open the file, i cant … | |
I have a binary tree, that user types in a string, if the string does not exist, it adds it to the tree, but if it does, it increases the frequency by 1 instead of adding it to the tree. I have my search working(I think I do anyways), The … |
The End.