32,204 Topics
| |
What I want to do is add items to an ArrayList then print. Each item needs to either be selectable, or non selectable. The list needs to be interactable with the arrow keys. I have the list being printed out, and thats about it. Heres my source, I have no … | |
this is image of error... | |
I am working on the Add em up project in the Blue Pelican Book. I would apreciate some help on figuring out how to get it to do subtraction to get the sum of 1249. Here is my code so far: `import java.io.*;` `import java.util.*;` `public class AddEmUp `{ `public … | |
Hi evryone! :) I'm a complete beginner in Java and today i'm found my self stack while trying to solve a problem. Basically what i have to do is to write a program that sorts three integers. The integers are entered from the input dialogs and stored in variables num1, … | |
hello friends, we have stuck with one problem while doing program of mail api. we have doing unread mails via mail api,but its not perfectly working. There is an problem in reading content of (multipart type) of mail. it will work on Text/Plain type. Following is my code.please let me … | |
Hello i have a little problem with writing the words in the database, after some space between the words the database can't remember it, thats why because the link eg. ( /some_file.php?search=something%20wierd ) that "%20" its the space between the words but from my mobile application when ill type space … | |
<%@page import="com.image.vo.ImageDetailsVO"%> <%@page import="com.image.controller.Global"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="Image" id="image" method="post"> <table> <tr> <td><strong>UserId:-</strong></td> <td><input type="text" name="name"><br> <br></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" value="submit" /></td> </tr> <% if … | |
I am a student, I have a program that I have been working on for about a month now. I have to hand it in on Wednesday and everything works fine but I just want to tidy up the interface. I have a JTable which I use to display records … | |
I'll include the codes to compare two .csv files and have to display only the name of the student who has got odd marks in both files (not to display who got same marks in both files) Main code package comparecsv; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import … | |
I have completed most of the code for my final assignment for my Java class but am having some difficulties getting it to compile. The requirements for the assignment are: • Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. … | |
Hello good day. Thank you for trying to help. My problem is as follows. A few columns in my table, use a JComboBox as the editor for their cells. Each cell, in a row (via JComboBox) presents the same choices to the user. The user is allowed to choose from … | |
Hello, I'm trying to program a Caesar Cipher, but I keep getting weird errors. My input is not being handled correctly. I have no idea, i've tried different variations, but it does not work, here is my code. import java.io.*; import java.util.Scanner; public class CaesarCipher { public static final int … | |
textpad 5 generated an "unexspected and unrecoverable error" with a large data file of mine and at first i though it was due to length. (1280 lines, 188kb) but there are much bigger data files involved. (5 to 6000 lines and >30000 characters in one) it gives out e dmp … | |
I want to read data from database. the data is in arabic language. the character set of my database is AL32UTF8. when i try to retrive the data i get "????" please do reply how to solve this problem this is the code public static void main(String[] args) { // … | |
I'm programming Blackjack and all is well, except after I type 'y' to hit again, the program terminates even though total is still less then 21. So my while statement is doing nothing? package com.github.geodox.blackjack; import java.util.Random; import java.util.Scanner; public class Blackjack { private static int total = 0; private … | |
I need to code a program to compare the datas in .csv file (.csv file is an excel file which will be seperated by , instead of cells by saving in.csv format). I've coded it fully and the required outout is also obtained. But i need a modified version of … | |
Hi everyone, I am working on an small inventory management application for learning about swing and i am using jTable to display the contents of MySql table i have to refresh the contents of my jTable instantly whenever i Add an new customer but i couldn't do it because i … | |
Hi all, I'm new to this site so please forgive my ignorances. I am a beginner at Java and I've been assigned to do a project about an Airline Reservation System. So the objectives required are: Reserve the ticket Cancel/Confirm Reservation Book the ticket Change / Cancel Booking Waiting List … | |
I am trying to get the highest value in my rows. I have been at this awhile trying to figure it out. I assume it is suppose to return 3 values but honestly i really suck at this. Here is what I have public static int getHighestInRow(int[][] numbers, int row) … | |
Im trying to average the user input by a string of numbers, It prints out without a problem but the output is very wrong Enter some numbers: 0,4,3,5 48.0 import java.util.Scanner; public class avg { public static void main(String[] args) { System.out.println("Enter some numbers"); Scanner in=new Scanner(System.in); String nums=in.nextLine(); double … | |
I have been working on this program for about a week now and I think I have it down pack. The issue I am having when I ask the user at the beginning of the game (human vs computer) everytime I run the program it asks me what my name … | |
Heelloooo good day. Thanks for seeking to help. I am creating a Java program(obviously). At the end of my work I wish to install it as (a)an .exe file. However I wish that after its installation, file type association would have been setup automatically(I phrased that latter part of the … | |
i'm creating the Simple CRUD Using Jsp, Servlet and MySQL program and i'm using the eclipse, and i all most done it, finally i'm going to run myself, it can't be run. i will install the jar file of jstl, servlet, mysql connector and finally standard.jar files are installed. but … | |
I created a custom 'text menu' that should print each String passed to it. This is the class: package com.github.geodox.areacalculator.menu; public class Menu { private static int index = 0; private static String[] menuItems; public void addItem(String menuItem) { menuItems = new String[index+1]; menuItems[index] = menuItem; index++; } public void … | |
Hello, I'm writting a code for comparing words in two sentences. I'm first comparing query with target (forward) and store the scores and again I'm reverse comparing target with query (reverse) and stores the score. I'm doing this inorder to solve the split word problem. For e.g. Sentence1: "Im working … | |
Oh boy They ust be tired of me now. My trouble: I have two ArrayLists of custom classes. ``ArrayList<Subject>` **a**` ``ArrayList<Student>` **b**` Within those custom classes are other custom classes which themselves have primitive data types as well as an ArrayList of other custom classes. It's a big circus going … | |
Hello, I am new to visAD library. I am trying to plot a 'lowerTerrain.nc' file in visAD. But its longitude(-180 to +180) and latitude(-80 to +80) ranges are displayed automatically in -150 to +150 for longitude range(X axis) and -90 to +90 in latitude range(Y Axis). I have tried this: … | |
hello good people, i am trying to make a small program that takes input from 4 text fields and adds them to the database(i am using mysql through wamp server) and some other database operations. my Exit and Clear buttons are working. I am using Swing class but have done … | |
I want to make and If statement which will work when a double "credits" is between 1 and 9. But I'm not sure how to. Will If (1 <= credits => 9) Then Work? |
The End.