32,204 Topics

Member Avatar for
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
1K
Member Avatar for rgkrish183
Member Avatar for ZaneDarklace

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 …

Member Avatar for milil
0
324
Member Avatar for root404

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, …

Member Avatar for JamesCherrill
-1
1K
Member Avatar for jalpesh_007

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Stefce

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 …

Member Avatar for JamesCherrill
0
283
Member Avatar for patelsagar.nandlal

<%@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 …

Member Avatar for JamesCherrill
0
673
Member Avatar for goofy_chick

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 …

Member Avatar for rf.saboia
0
7K
Member Avatar for krnaveen14

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 …

Member Avatar for nebspace0x297
0
241
Member Avatar for Robert_12

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. …

Member Avatar for cgeier
0
985
Member Avatar for petermwaniki

hi am currently learning java on my own and am kindly assistance with code for a database search button. thanx for help

Member Avatar for stultuske
0
62
Member Avatar for CoilFyzx

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 …

Member Avatar for mKorbel
0
1K
Member Avatar for eldiablo1121

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 …

Member Avatar for Doogledude123
0
3K
Member Avatar for dwild

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 …

Member Avatar for dwild
0
174
Member Avatar for khadija.cheeko

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) { // …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
388
Member Avatar for krnaveen14

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 …

Member Avatar for JamesCherrill
0
288
Member Avatar for Dinesh_9

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 …

Member Avatar for Dinesh_9
0
1K
Member Avatar for অসীম

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for lauren.vitiello.12

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) …

Member Avatar for scudzilla
1
331
Member Avatar for custurd12

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 …

Member Avatar for scudzilla
0
120
Member Avatar for dlmagers

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 …

Member Avatar for dlmagers
0
2K
Member Avatar for CoilFyzx

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 …

Member Avatar for stultuske
0
301
Member Avatar for rgkrish183

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 …

Member Avatar for rgkrish183
0
1K
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
256
Member Avatar for yamini222

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 …

0
93
Member Avatar for CoilFyzx

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 …

Member Avatar for JamesCherrill
0
563
Member Avatar for dev90

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: …

0
122
Member Avatar for sana.f.qureshi_1

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 …

Member Avatar for JamesCherrill
0
216
Member Avatar for Start4me

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?

Member Avatar for JamesCherrill
0
311

The End.