Java Definition and 572 Threads
-
R
Java How to Transfer Files Between Computers Using Java?
Hi, Does anyone know a way how to transfer a file from one computer to the other with Java language? Should I serialize it as an object?- ramollari
- Thread
- Java Networking
- Replies: 12
- Forum: Programming and Computer Science
-
Q
Java Importing Images to a Java frame
[SOLVED] Importing Images to a Java frame Hey guys, I have a very simple java program. I opens a frame, and I want to be able to put a picture in the frame. How do I import a picture and set it as the background to the frame? Here is my simple program: import java.io.*; import...- Quantum_Prodegy
- Thread
- Frame Images Java
- Replies: 4
- Forum: Programming and Computer Science
-
C
Java Find the Mode of an Array in Java
How would i write a program in java such that if you input an array, it returns the mode of the array. IF there is more than one mode, return the first mode. Here is my code so far: any help is appreciated! thanks- courtrigrad
- Thread
- Java Program
- Replies: 11
- Forum: Programming and Computer Science
-
Java Get JAVA Runtime Environment for Mac OS X 10.1.5 Today!
I need JAVA's Macintosh runtime environment, I have Mac OS X 10.1.5, and need it ASAP today. Any comments are welcome. Thank you. ...I'm A straight A student, and working my ass off in JAVA and, I'm still getting a D... I need this now so I can work on it at home as well as overtime at...- Mk
- Thread
- Java
- Replies: 6
- Forum: Programming and Computer Science
-
C
Java Converting Binary Numbers to Base 10 in Java - Program Help
Hello all: I need to write a program that takes an array of 0's and 1's and converts them into base 10 numbers. Here is my code, but I can't get it to return the correct base 10 number. /* This program returns a value in base 10 from an array of binary numbers. * */ public...- courtrigrad
- Thread
- Java Program
- Replies: 5
- Forum: Programming and Computer Science
-
C
Java Is This Java Code Correct for Comparing Array Elements?
public class check { public boolean isDifferent(int [] a, int [] b) { for(int i=0; i < a.length; i++) //loop through your a array { for(int j=0;j<b.length;j++) //next loop through your b array { if( a[i] != b[j] ) // check for...- courtrigrad
- Thread
- Java
- Replies: 20
- Forum: Programming and Computer Science
-
C
Java Checking if One Array is Contained in Another using Java Arrays
Hello all I am trying to write a program that checks whether one array is contained in another array. For example, A = {1,2,3} B= {1,2,3,4,5,6} A is contained in B, so we print out true, otherwise we print out false. Any advice or tips in writing this program would be greatly...- courtrigrad
- Thread
- Arrays Java
- Replies: 22
- Forum: Programming and Computer Science
-
H
Java Why Is public static void main(String[] args) Essential in Java Programs?
As a very beginner to java a very basic question is in mind.in every java program we write the first line after mentioning the name of the class as ____________________________________ public static void main(String[] args) _____________________________________ so i want to know the...- heman
- Thread
- Java
- Replies: 3
- Forum: Programming and Computer Science
-
U
What is the Java notation for height in a 2D array?
I know that in an array called math[][], the "math.length" will give me the length, or "width" of the array. What is the notation for the "height"? Ex, if math[][] was a 12x15 array, then math.length=12. how would I get the # 15?- UrbanXrisis
- Thread
- Height Java Notation
- Replies: 2
- Forum: Introductory Physics Homework Help
-
X
Master Java Homework: Learn to Create Random Math Addition Questions with Ease!
Question: Write a program which displays a random math addition question, asks the user for the answer and tells them whether they are correct or not. ok, what is the command in java that creates an random math additon question?@#$% I have never heard of something like this before!- xLaser
- Thread
- Homework Java
- Replies: 4
- Forum: Introductory Physics Homework Help
-
E
Solving a Java Program that Prints Prime Factors of Numbers
Ok, I posted this in the software forum a this afternoon, but I guess all the java gurus are on vacation. So I thought I'd post it here. This is my problem: Ok, I have a new problem. This time I'm trying to make a program that prints all the prime factors of a given number and the 29...- ek
- Thread
- Factors Java Numbers Prime Program
- Replies: 1
- Forum: Introductory Physics Homework Help
-
F
Java Java AVL Tree Library: Simplifying Binary Search Trees for Student Storage
[FONT=Century Gothic]Is there a library in java I can use to make AVL trees. See we have this project where we have to store students in a Binary search tree and then have access to their stuff... anyway is there a structure I can just import to be able to use it... or do I have to implement my...- FrostScYthe
- Thread
- Binary Java Search Trees
- Replies: 2
- Forum: Programming and Computer Science
-
C
Java Creating Java Panels with BorderLayout
Ok, guys, I need some help here. This was done using Java, by the way. One of the homework questions we had a while ago was to create a frame and within the frame create two panels and on the two panels create three buttons using BorderLayout. Here's what I had: import javax.swing.*; import...- Chrono
- Thread
- Java
- Replies: 11
- Forum: Programming and Computer Science
-
C
Java Is Java the go-to language for AP Computer Science?
Hello all I will be taking an AP Computer Science class this year. We will be learning Java. Can anyone give me a quick understanding of Java? What are its uses? Is it similar to C? Thanks- courtrigrad
- Thread
- Ap Computer Computer science Java Science
- Replies: 5
- Forum: Programming and Computer Science
-
C
Is JBuilder the Best Choice for Java Development?
Is Java good to learn ? I just bought JBuilder and installed but it is really slow whenever it is started. Why ? I think I won't study it and will choose SmallTakl because I see the word SmallTakl in most of the books in my library. Any help is appreciated.- Cachema
- Thread
- Java
- Replies: 13
- Forum: Introductory Physics Homework Help
-
P
Java Java Pointers and Missing method body
I declare my pointer as char* ptr and my function as public boolean FuncFoo() but java compiler complains that I have some problem with identifier right at * and my function is missing the method body... I couldn't figure out what was wrong with them. Would you please help me ? Thank you,- Pattielli
- Thread
- Body Java Method Pointers
- Replies: 1
- Forum: Programming and Computer Science
-
N
Java How can I make a 2D star move in my JFrame using Java?
In my JFrame, I already draw a 2d star, i would like to make it move around in my frame, but i don't know how to erase the old star when it appears in a new position, can anyone here help me with this ? Thanks- Nec
- Thread
- Java Star
- Replies: 2
- Forum: Programming and Computer Science
-
D
Java Fix Java GUI Problem: Textboxes Being Cut Off
My program has a slight gui problem. The bottom of my gui (the textboxes) are being cut off. I have no idea why this is happening and I have very little experience with GUIs. Could someone tell me why this is happening and how to fix it/better way of doing it. Thanks ok here is my code...- DarkAnt
- Thread
- Java
- Replies: 2
- Forum: Programming and Computer Science
-
Java Welcome to Java Class: Learn Java One Bit at a Time
Welcome to Java Class! We're going to learn a bit of Java here, one bit at a time, using real world examples to understand what we're doing. My aim is that all of the Java posted here is executable, so you can try it yourself. First, before you can make use of any Java programs, you'll...- chroot
- Thread
- Bit Class Java Time Welcome
- Replies: 129
- Forum: Programming and Computer Science
-
Java Learn Java: A Beginner's Guide for Marketability
What's the best way to learn Java. I'm trying to improve my marketability. I don't know any high level programming languages. Well, I had to take BASIC in 8th grade, back when eveyone still used Apple. I also took something called, I think, Q-BASIC? at college. I tried learning C++ or...- turin
- Thread
- Java
- Replies: 4
- Forum: Programming and Computer Science
-
Java Installing Java Editors J2K/J2SDK?
Umm...I've tried two java editors on my computer and I'm getting the same installation "error" (not really an error, but whatever). I tried Sun's SunOne Studio and it asked me for the "J2SDK home"...saying that I didn't have one and I needed one in order to solve the files. Likewise, when I...- SDNess
- Thread
- Java
- Replies: 7
- Forum: Programming and Computer Science
-
K
Java Java script to stop advertisment pop-ups
I want to build a website and signed up in a free web-hosting provider, Angelfire. Because it is free of charge, advertisment pop-ups can't be avoided. Is there any code which I can paste in my website so as to stop the pop-ups? (I don't mind if I need to paste the code in every page of my...- KLscilevothma
- Thread
- Java
- Replies: 3
- Forum: Programming and Computer Science