31,001 Topics

Member Avatar for
Member Avatar for learning.java

Write a java program that will open a file, read each of the records from the file, use that data to populate a two dimensional array and write the sorted data out to a new text file. Define a class named [B]Munge[/B] which will do all the 'heavy lifting' in …

Member Avatar for stultuske
0
187
Member Avatar for tendaimare

I have been programming woth vb.net for a long time but now i want to start with java. and I wanted to know where i can find enlightening guidance tutorials and code samples that work . I also heard that java requires other programs to run with it. any links …

Member Avatar for stultuske
0
81
Member Avatar for corvenzo

Hi, I'm a pretty new Java student and I was just confused on a few basic concepts. What exactly is the difference between public and private classes and in which case would you use each one? also, what is a constructor, mutator, or accessor? Thank you.

Member Avatar for ash.28.88
0
390
Member Avatar for Afropuff01

I have used 2d arrays many times before, but for some reason eclipse keeps putting a red line under ; at the end of the declaration line for it. When I run it I get an unresolved compilation error. Here is my code: private Zone[][] zones = new Zone[10][10]; What …

Member Avatar for JamesCherrill
0
130
Member Avatar for macdunk11

I am finding the factorial and exponents of variables both recursively and iteratively. What I need help with is finding out how long it took each one. Where do I put the System.currentTimeMillis() part and how do I find out exactly how long it took (i.e. 55 milliseconds)? public static …

Member Avatar for macdunk11
0
160
Member Avatar for mp9036

import java.util.Calendar; import java.io.*; public class DayOfYear { public static void main (String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(isr); System.out.print("Enter the date (yyyy,mm,dd): "); String date = in.readLine(); Calendar cal = Calendar.getInstance(); String[] seperate = date.split(","); int year = Integer.parseInt(seperate[0]); int month …

Member Avatar for poojavb
0
91
Member Avatar for 3nrichedd

hello, I am lik 98% done with this assignment where the user enters a number, and then it will output if you guessed the right number, or if you have any matching digits, so for example, the if the random number is 24 and the user inputs 20 it should …

Member Avatar for poojavb
0
222
Member Avatar for Samyx

Hello everyone, Is there anyone familiar with OpenClinica? I am trying to figure out a way to migrate data from a CRF to another, the thing is, those CRFs were note created as a version of each other. How can I migrated data from an old CRF to a new …

Member Avatar for stultuske
0
83
Member Avatar for dancingdophie

So the program is supposed to display the box like this (for LIST ALL TRANSACTIONS) : List all transactions: ID Type Amount 0 check 50.00 1 svr.chg 5.15 2 deposit 40.00 3 svr.chg 0.10 the box displays other transactions; it saves the old and new ones and display them one …

Member Avatar for dancingdophie
0
237
Member Avatar for nyfan68

I have a problem that calls for me to Write a simple web server that recognizes only the GET request. When a client connects to your server and sends a command, such as GET filename HTTP/1.0, then return a header HTTP/1.1 200 OK followed by a blank line and all …

Member Avatar for |-|x
0
202
Member Avatar for bsabowala

Lets say that i have a .txt file with the following text: " Hellow lol lololo hahahahahhahaha hyryryryryryryr " I want to add all that to the clipbourd so that I can paste it on an other application. Can someone help. I know how to add string to a clipbourd …

Member Avatar for bsabowala
0
214
Member Avatar for Cenchrus

Hey guys, I was wondering if someone could help me interpret line by line what is happening in this code... package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …

Member Avatar for Syrne
0
221
Member Avatar for Thermalnuke

Hey guys Having a problem with my program i am writing this program out all in char format. it is suppose to out put the letters in order and then spit out the numbers in reverse. also the outputs that come out are in order and then off to the …

Member Avatar for Thermalnuke
0
1K
Member Avatar for Stjerne

Hello, So I've big project (about conserts) going on, and this project, I'll handle all GUI. Since we need a few windows (one for registration artist, hall, concert. one for "Buy ticket", one for reviews etc.), we decided to put all these things on tabs, so we only have one …

Member Avatar for NormR1
0
203
Member Avatar for kalcio

Hi, I want to use a compression alogorithm to compress files and implemented in my interface,I have browsed the net and I have found many like Huffman,is it the best choice and thanks

Member Avatar for JamesCherrill
0
134
Member Avatar for blake81

I am trying to code a number guessing class and client. The issue/problems I am having with this class/client is that my number guess either ends up too high or too low and in top of that it loops the number twice when it should once. Number generated from 0 …

Member Avatar for stultuske
0
141
Member Avatar for WDrago

Hi Folks, I just got a new 64 bit Windows 7 system and I'd like to install the 64 bit versions of Java and Netbeans. I found the 64 bit Java download here: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html But I can't find the 64 bit Netbeans. I'm pretty sure it exists because I see …

Member Avatar for rubberman
0
185
Member Avatar for Tuz

Hi , I jave an assigment to find a java programm to modify it? can someone help me pls ? thanks

Member Avatar for zeroliken
0
45
Member Avatar for Dmiller071

Hi all, I need to write an algorithm that can find intersections, dead-ends, and turns within a maze. Below is the code I currently have. You're welcome to read through it, though I'm not sure if it will help in any way. The basic information: - Maze image file is …

Member Avatar for Dmiller071
0
170
Member Avatar for MahdiAlQaffas

hello everybody I am writing a program in java that draws a square fractal recursively. The program starts by drawing a rectangle in the center of the window (1/4 of the window). Then I need to draw 4 smaller rectangles attached to the corners of the first rectangle. Then I …

Member Avatar for NormR1
0
239
Member Avatar for tyu4

I'm completely lost with this assignment code. The objective is to modify this program that originally asked the user for an input 1-12 for a month, and it outputs the number of days in that month. The modifications would make it so that the user inputs the name of the …

Member Avatar for NormR1
0
2K
Member Avatar for setiawan.fenrir

hello there please help me, I have a problem with this program, i confused about how to make this program run well, this is the lish of program package guipert2; import java.awt.BorderLayout; import java.awt.Color; import java.util.ArrayList; import java.util.List; import javax.swing.DefaultListModel; import javax.swing.JList; import javax.swing.JOptionPane; public class ContohList extends javax.swing.JFrame { …

Member Avatar for NormR1
0
167
Member Avatar for blake81

I need a little bit of help with my coding below. Whenever I try to run the second application it gives me momPalindrometrue dadPalindrometrue sisterPalindromefalse racecarPalindrometrue JavaPalindromefalse A man a plan a canal PanamaPalindromefalse Hurray for HollywoodPalindromefalse Mr Owl ate my metal wormPalindromefalse Was it a car or a cat …

Member Avatar for NormR1
0
285
Member Avatar for jarograv

I have used snippets of code from various sources to compile the following code: import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; import javax.swing.JFrame; import java.util.Calendar; public class ShowImage extends Panel { static Calendar cal = Calendar.getInstance(); //gets system time BufferedImage image; private static final String holidaysimages[] = { //declares …

Member Avatar for NormR1
0
291
Member Avatar for Masque

I have a confusion of how to put that max and min in main method so it would run. PS: there might be mistakes ***The goal is to create a method that enter any numbers by user and it suppose to show the Max and Min.*** **PLEASE HELP~! what is …

Member Avatar for Masque
0
481
Member Avatar for andisss

This is Code: public static int getAutoIncrement(int ain) { int count = 0; for(SBufferScheme scheme : getInstance().listScheme) if(ain == scheme.id) count++; if(count == 0) return ain; return getAutoIncrement(ain + 1); } And this is Error: Exception in thread "ThreadPoolExecutor-10" java.lang.StackOverflowError at java.util.AbstractList$Itr.next(AbstractList.java:345) at lft.gameserver.model.ManageBbsBuffer.getAutoIncrement(ManageBbsBuffer.java:36) at lft.gameserver.model.ManageBbsBuffer.getAutoIncrement(ManageBbsBuffer.java:41) Any idea what could …

Member Avatar for NormR1
0
166
Member Avatar for 54uydf

Hello, I took a Java language class, so I know how to write a code and different stuff.. now, I'm looking at job descriptions and some say they look for a server side developer and others for a client side. does knowing Java language is enough to work at both? …

Member Avatar for thines01
0
147
Member Avatar for caba992

****i want to display thread1 thread2 thread1 thread2 in java but i am not that good at thread i understand that i have to create three class main class, thread1 and thread2 class and i know i have to use wait() or notify() method ..i anyone help just give to …

Member Avatar for NormR1
0
128
Member Avatar for Checkerboz

Hey, so I am wondering what would be the easiest way to check if a double "looks" a certain way. Like this: Let's say I have some input and I want to check if the input has the same format that I want it to be. Here's what I want …

Member Avatar for NormR1
0
207
Member Avatar for DreaIVI

Hi, I recently decided to have another go at learning some programming, and decided to make some sort of 2d gameboard useable for stuff like Chess and Othello. I ran into a problem that I ran into last time I tried learning programming as well, and it has to do …

Member Avatar for NormR1
0
201

The End.