Most common statement on these forums haha, love it :)
Type: Posts; User: Cuju
Most common statement on these forums haha, love it :)
import java.util.LinkedList;
import java.util.Queue;
/**
*
* @author javadb.com
*/
public class Main {
/**
You can start off by creating your "random generator"
Random generator = new Random();
int RandomNumber = 0;
RandomNumber = generator.nextInt(6)+1;
Post your code though, we aren't going...
I'm trying to create hit boxes on a platform and an oval(I've accomplished this). But my method of doing this is checking if any of the 16 hit boxes on the oval touch any of the 12 hit boxes on the...
You didn't give a very specific question, you asked people to explain your own code. ~X(
8. Java
public class OneToTen {
public static void main(String[] args) {
int c = 0;
while(c<10) {
Could you maybe explain what you're supposed to do with the input from the file?
Just wondering if anyone on the forums had some interesting programming problems/projects etc. that they did in a first year university or senior high school programming class.
I've looked at all...
Go here: http://www.javaprogrammingforums.com/java-theory-questions/3870-random-letter-problem-please-help.html#post10390
I don't know which thread you're using :S
Took me some time, but I got it :)
import java.io.*;
import java.util.*;
public class RandomLetter {
public static void main(String args[]) {
I deleted it by accident lol, here it is again:
import java.io.*;
import java.util.*;
public class ConvertString {
public static void main(String args[]) {
I found an example of an audioinputstream, maybe you can mess with this to see whats wrong with yours!
import java.io.File;
import javax.sound.sampled.AudioInputStream;
import...
Here's a simple GUI Template I have from last year. Hope it helps!
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class GUITemplate extends JFrame
implements...
Post your code dudeeee :P
I'm still a java noob so my knowledge of that stuff is pretty much nothing.
I'm having a hard time understanding how to get the the tail pieces to follow the heads path. I've tried storing the...
Thank ya, and yeah that's what I thought I'd have to do ugh.
Any suggestions on how to get the tails behind the lead cube to follow its path, this is my main concern atm?
I'm working on creating a snake game for fun. I've got a rough version of it going now which is basically just the snake moving around and boxes appearing on the screen. I just revamped the whole...
From what I understand on this forum. People don't do your homework for you :)
Alright so bootcamp would be the way to go if I really wanted JCreator. Thanks for the help, very useful members on this site!
Is there a virtual machine that allows me to run JCreator on Mac? I have no experience with VM's so just wondering.
Thank you very much helloworld :)
/edit
Silly question, but I still need to install the JDK to use Eclipse? Even though the JDK is only for PC/Linux?
I'm getting a Macbook Pro this summer for school. I was wondering if Eclipse on Mac is the same or close enough to JCreator on PC ?
Just thought Tic Tac Toe and the Peg game are pretty similiar to what you're trying to do. You can use the same idea to pick positions on the board.
Tic Tac Toe
-This was before I learned scanner...
I have a Tic Tac Toe game and a Peg game that runs in the CMD window if you'd like to see my code for that? :)
& I also have a simple Tic Tac Toe GUI if you want to see that too?
Hello to everyone on the forums, just wanted to say that I've taken a 6 month course in Java programming and I am attending university next year to further my studies. I'm enrolled in the Bachelor of...