32,204 Topics
| |
Hi. I have a MVC project with a form and a submit button. The values are passed to the controller. One method will fetch data from the dataset according to the parameters passed. Then some VB functions will work with the data retrieved. Currently I have the whole dataset being … | |
Hi, Im new to Java so Im trying out some excersises. The question asks to input IC number then get the digits for birthdate then display the complete birthdate. The output of this IC number : 900208-08-5386 ,should be something like this : 08 February 1990. I probably have to … | |
I am trying to build a web application that can also run on mobile phones. Is the html code generated by imgmap_desktop can be run on both web and mobile? or rather web responsive type? | |
Hello. I want to submit a code stuff with an explanation. It is not a valid code. Someone can help me to find error? <code> ** ** I'm trying to build a program that change numbers writen in decimal notation. If we consider each ranges of numbers: unities, 10-es, 100-es … | |
I have deployed an application in wildfly localhost server through jboss but the application is failing to deploy. when I delete the web.xml page the app deploys but shows error 404. what might be the problem?? | |
I know you're not supposed to use Lightweight Components like JFrame with non-Lightweight Components like JFrame, so my question is, what do you use with a Canvas? Is there also some example code for it? Thanks! | |
Implement the following class.the class has two instance variables num for the fraction numerator and den for the fraction denominator. public class Fraction implements Comparable<Fraction> public Fraction(int num, int den) // initialize instance variables public int den() // returns the denominator public int num() // returns the numerator public Fraction … | |
I had created my Qt C++ application and now I am thinking to provide it as a plugin or as library in Eclipse. I know there is CDT plugin, but I don't won't to write my code again. Is there any way to achieve this? Snippet for QPushbutton in qt … | |
I ave ah questions it is just a question, so dont penalized me okay question 1: how do you spot logic errors question 2: how do you fix it question 3: what can be done to try to prevent it, is there a way | |
I am creating a program that takes two english words from the command line and prints one out vertical and the other horizontal and sees how many times the words cross. If they don't cross it then prints out an error message. Here is what I have so far for … | |
Is there a way to require a subclass to call super explicitly in it's constructor? | |
Hello guys, long time no see! i've put together a very small simple console base application that takes a date and a few strings and print them off. Let's look at the code first. Date.java /*Date.java this class represents dates */ public class Date{ private int month; private int day; … | |
I am attempting a heap sort that sorts from lowest to highest. My code runs and displays, but I have some issues. The output I get is: The values in the heap array are: 8 9 2 3 4 1 5 6 7 Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 9, … | |
Here's the instructions: Write a Song class that contains the following properties along with appropriate get/set methods. Please note this is a pretty simple object and not anywhere near the level of completeness required for writing an actual music player program (especially since this program doesn't know how to read … | |
Hello guys. I'm creating a web application on Netbeans. Under Source Packages, I've created: - DAO Factories for Customer, Inquiries, and Employee; -DB Connection to establish connectivity with a database I've created; -Entities which include Customer, Inquiries, and Employee; -Servlets containing Login, Reservations, EmployeeRegistration. I'm just wondering if my understanding … | |
Hi all. I have a program that uses a class called PersonalInformationClass. The assignment says: Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Demonstrate the class by writing a program that creates three instances of it. One … | |
I am writing a code that reads a user-input text file, and displays all words(excluding duplicates), and displays them in ascending order. My code runs correctly, and displays the words. The only problem are quotation marks. I uploaded a sample from a fanfiction I wrote a long time ago, and … | |
I am trying to figure out how to print out w1 and w2 at the point it crosses like so: b l ottery a t .... and so on Here is my code. public class Assg2 { public static void main(String[] args) { String w1 = args[0]; String w2 = … | |
Ok, I need help finishing my homework. I do not want the answers, just hints that will take me to finish the program. I am still a begginer at java so bear with me please. This is my hmw: Write a java program to help students to calculate his/her grade. … | |
I basically wrote a program for a phone card company, using about four classes. Im not sure what im doing wrong, but my program is not compiling. Most of my errors occur in the fourth file (class superphonecardinc) where the else if(command.equals("getLimit")) begins. Im thinking that I used too many … | |
![jframe.png](/attachments/large/4/0b8af77defcb3e49ffd02bbff7d6281f.png "align-center") Here is the jframe above,images selected at random,the task is after image is displayed,choose from jcombo the answer,press submit and display in jtextfield below the answer:"Correct" or not.And untill the submitt button is not pressed ,disable the next button.How would i do this logic? So far i have … | |
Ok, so I have a JButton on my program and later on in the program i want to put an image on the JButton I have many buttons that start out with images on them, but Im wondering how to add images to the JButton at a later date so … | |
Hello, I would make a full setup for my java application but I have no idea how can i make it, and I would make a class installer like in .net because I want some tasks running during the installation. Thanks for your help. | |
i have this problem about the betting system of my game. Here's the scenario: Your money: 300 Your bet: 300 JOptionPane appears: "you have insufficient money to bet" Here's the code for the main program: /* * To change this license header, choose License Headers in Project Properties. * To … | |
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package my.GeographyQuiz; import java.awt.*; import javax.swing.*; /** * * @author K00190164 */ public class GeograpgyQuiz extends javax.swing.JFrame { … | |
Dear all, I was given a project to write a software that would track contracts. Everything is successful until I read or write the current data from the JTable to the textfile. This also happens when I read the textfile and insert the data into the JTable. The exception I … | |
Hello all, I need help with creating grammer for Antlr that would find class, variables, methods and relationship like is-a and has-a that would be later used for generating UML class diagram. Thanks in advanced. | |
import java.io.*; public class testprog { public static void main(String args[]) throws IOException, InterruptedException { String command="find BEL/ -type f | wc -l"; Process p=Runtime.getRuntime().exec(command); p.waitFor(); BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); String line=reader.readLine(); while(line!=null) { System.out.println(line); line=reader.readLine(); } System.out.println("Done"); } } It's return null value. plz help me | |
John is a novice biological statistician. His first assignment given to him by his mentor, Mrs Jane, is to conduct a survey on 30 exotic plants and to note the number of flowers they produce during a period of one month. The results collected as as follows:! 0 1 1 … | |
Dear all, I was told to write an application for my assignment that would keep track of contracts. The problem is, I have no clue how I can make this application write JTable into txt file every 5 seconds and wheever application would open, it would read the txt file … |
The End.