32,204 Topics

Member Avatar for
Member Avatar for sk8ergirl

hi I'm working on my hw and I have problem I know how to read file from data and split each line using array now I want to use arrayList .. I want to read the data from the file and create arrayList and then split each line and create …

Member Avatar for tux4life
0
768
Member Avatar for sk8ergirl

hi I'm working on my hw and I have problem I know how to read file from data and split each line using array now I want to use arrayList .. I want to read the data from the file and create arrayList and then split each line and create …

Member Avatar for tux4life
0
154
Member Avatar for Jon BH

Hi I'm trying to locate some java that will allow a preview images, and float large display on roll over. The setup will be a list of customers and a small thumbnail. On rollover a large image centre screen on top with a text description below. Mouse out will clear …

Member Avatar for Jon BH
0
120
Member Avatar for initialise

Hi All, I have two major problems and they may or may not be linked. My main problem is with an application that I am creating. So far, I have only created the GUI using Netbeans 6.8. When I run the app through Netbeans then everything works fine. However, when …

Member Avatar for adisri
0
447
Member Avatar for erms

Hello, This is what I'm doing: 1. Get an image from a source 2. Get mouse position 3. Put a mouse Image on original image 4. Resave The code to get the image is working and saving it the "first" time But the code after that seems to not work …

0
82
Member Avatar for mateusz.baran1

Hello I would like to ask how to change button "Open" to "save" when iam using JFileChooser public void actionPerformed(ActionEvent e) { Object zrodlo =e.getSource(); if(zrodlo == mSave)//zapisywanie pliku { JFileChooser fc = new JFileChooser(); fc.setSelectedFile(new File(fileName)); fc.setFileSelectionMode(JFileChooser.FILES_ONLY); FileNameExtensionFilter filter = new FileNameExtensionFilter( ".txt and .java files", "txt"); fc.setFileFilter(filter); if …

Member Avatar for mateusz.baran1
0
1K
Member Avatar for Violet_82

hi chaps, I would like to do this exercise taken from the deitel and deitel book, chap 4 exercise 4.38, in brief: "Write an application that reads a 4 digit int and encrypt it replacing each digit with the result of addin 7 to it and getting the reminder after …

Member Avatar for Violet_82
0
575
Member Avatar for jinjin05

Hi! i'm having a problem installing Egit on Eclipse. When i add the link http://download.eclipse.org/egit/updates , there are errors saying: unable to read repository at http://download.eclipse.org/egit/updates/content.xml connection to http://download.eclipse.org/egit/updates/p2.index failed did i miss something that I need to install or configure? i need your help, thanks!

Member Avatar for tomwatson2
0
140
Member Avatar for hinterface

We are given an array of 2n integers wherein each pair in this array of integers represents the year of birth and the year of death of a dinosaurs respectively. The range of valid years we want to consider is [-100000 to 2005]. For example, if the input was: -80000 …

Member Avatar for stultuske
-1
98
Member Avatar for sky27

hello, how do i insert an image into mysql so that i can retreive and use it i java.

Member Avatar for pzuurveen
0
27
Member Avatar for jinjin05

Hi! i'm having a problem installing Egit on Eclipse. When i add the link http://download.eclipse.org/egit/updates , there are errors saying: unable to read repository at http://download.eclipse.org/egit/updates/content.xml connection to http://download.eclipse.org/egit/updates/p2.index failed did i miss something that I need to install or configure? i need your help, thanks!

0
43
Member Avatar for codechrysalis

Hi everyone I have a issue where I have written the entire program but couple little tweaks are needed for me to get the program done. I have my super class here "Pet". I have created couple objects in Main, "myRobin" , "myCow", "myBlackMamba" and passed some arguments to them. …

Member Avatar for codechrysalis
1
164
Member Avatar for Violet_82

Hi there, I have opened another thread even if the program is very similar. I have modified some code I have produced earlier and now I am getting some runtime errors, and I can't quite understand why. Now, here's the code: EmployeeClass.java public class EmployeeClass{ private String firstName; private String …

Member Avatar for Violet_82
0
4K
Member Avatar for jasonmark238

Hi friends. What are applets in java. What are the advantages of Applets over stanalone programs. Please give me the better way to learning applets easy, because dificult to remembering. Please help me. Thanks & Regards Jasonmark Rxdrugonlinestore

Member Avatar for <M/>
0
200
Member Avatar for yup790

I have tried looping through the text file but all it does is read the first line. I tried linefilereader but it still only reads the first line. int word_chooser = (int) (Math.random()*300); LineNumberReader r = new LineNumberReader(new FileReader("words.txt")); r.setLineNumber(word_chooser); word = r.readLine();

Member Avatar for stultuske
0
411
Member Avatar for hwoarang69

i cant seem to create my java project into jar files so any one can run it. i have a folder with 10 java files and two folder and some images and music. take a look at my project files tree. its on a image. ![tree](/attachments/small/3/tree.jpg "align-right") i google it …

Member Avatar for hwoarang69
0
169
Member Avatar for deadsolo

Hi there, I am having some trouble with a regex and am hoping on one of you great folks can assist me. I am very weak with regular expressions just to give you guys a heads up. Here is the text I am using a regex on: Control flow 6881 …

Member Avatar for deadsolo
0
296
Member Avatar for Forte1292

Alright so in my Data Structures class we have a program due sometime next week. I pretty much know how I'm going to do it, but I need help with one method of the program. I need a way to go through every possible order of 6 unique numbers. I …

Member Avatar for Forte1292
0
328
Member Avatar for Aditya_4

package display; import java.io.File; class display { int file=0, directory=0; void list(String path) { File root = new File(path); File[] f1 = root.listFiles(); for (File S : f1) //error { if(S.isDirectory()) { list(S.getAbsolutePath());//error directory++; } else if(S.isFile()) { file++; } } } } package display; public class displaymain { public …

Member Avatar for IIM
0
265
Member Avatar for ibra.kitandwe
Member Avatar for jasonmark238

What are the advantages of interfaces in java over calsses. Please give me reply and mention interface importance in java. Thanks & Regards Jasonmark

Member Avatar for stultuske
-1
213
Member Avatar for lena1990

hi all i want to create a download manager program that downloads programs(executable files) i search the internet but i didnot find something useful i would be greatful for any help thanks in advance

Member Avatar for bguild
0
164
Member Avatar for razor2890

Hey guys!!! Just found this wonderful forum.....Thanks for the guys who run this forum.. I am an Elec. & Telecom engineer... I understand Java Programming & I have more than 90% of the concepts of core-java and good knowledge of jsp,servlets,struts....I have some basic knowledge of oracle.... I have a …

0
83
Member Avatar for titan5

I wanted to read data from multiple files simultaneously but I am getting NULL error. Could anyone help in pointing out my error in the code. I am not sure if I can make arrays of FileInputStream and DataInputStream the way I have done. [CODE=Java] import java.io.*; class Count1 { …

Member Avatar for peter.lawrey
0
411
Member Avatar for Goldfinch

So I just updated to Mac OS X 10.8 and I'm having a serious IT problem that is preventing me from compiling any code. It looks like I've installed Java 7, but its trying to access a nonfunctioning version of OpenJDK8

Member Avatar for tux4life
0
67
Member Avatar for DEAD TERMINATOR

What I want to do is to take a 2d int array and use it to create a Matrix (a class I will be defining) which will effectively wrap all the values of the 2d array together so that I can perform matrix multiplication for coordinate translation. I am rather …

Member Avatar for tux4life
0
243
Member Avatar for Huxaifa

int main() { float a,b,c; cin>>a >> b >>c; if(a<(b+c) && b < (a+c) && c< (a+b)) { cout<<"\nIt is a Triangle.”; if (a==b && b==c) cout<<"\nIt is a Equiletaral Triangle.”; if(a==b || a==c || b==c) cout<<"\nIt is a Isoceles Triangle.”; else cout<<"\nIt is a Scalene Triangle.”; } else cout<<"This …

Member Avatar for DEAD TERMINATOR
-1
363
Member Avatar for ashish.appin07
Member Avatar for toldav

Please any one can help me to fix my last statement of code I'm traying to have a user input the temp and then convert ot either F or C. But my last if else statement doesnot engage well with the over all code. I'm beginner Java programnig. Thank you …

Member Avatar for Taywin
0
113
Member Avatar for Forte1292

go through every combination ie(0,0,0,0),(0,0,0,1), .... ,(3,3,3,3) But in a general way such that it's always 0-3, but it may be 4 digits or it may be 5 digits or any other number? If I know the length I could do nested for loops, but since I don't...is there an …

Member Avatar for Forte1292
0
119

The End.