Questions tagged [bluej]

BlueJ is a popular Java IDE aimed at teaching the principles of object oriented programming.

BlueJ is an open source platform written in Java that's especially aimed at beginner developers. It presents items to the user in a much more easy and intuitive format than more comprehensive IDEs such as Netbeans or Eclipse, helping people get started quickly and easily whilst also understanding what's going on.

Download

The latest version of BlueJ is available from the download page, here.

Useful Links

1093 questions
-3
votes
1 answer

Why doesn't charon accept my code?

I have just started a computer science degree at university, and I am stuck on a task. I am obviously very new to programming so please don't judge, i'm trying to learn the basics, and this exercise is very basic yet i cannot quite solve it. I have…
Jonny
  • 19
  • 1
  • 7
-3
votes
1 answer

How can I rename a particular variable throughout the whole program?

How can I change a particular variable to some other throughout the whole program? For example, I have made an array L which has quantity, and I want to switch L with qty throughout the program! Find and replace will take forever. Any other method…
ibuprofen
  • 117
  • 6
-3
votes
3 answers

What purpose does object1.object2 serve?

So, i'm new to coding and am working on an exercise with this code. What I'm wondering is what "nextRoom = currentRoom.northExit;" etc does as in my eyes the dot notation should be used as object.method(parameters) as opposed to object1.object2…
UserC4
  • 13
  • 1
-3
votes
2 answers

Is this a legal if sentance?

I just started coding and can't get this "Heater" object to work. It just prompts the if else statement "its too hot" when trying to give temp a higher value and it does not stop/ goes below the min temp value when calling the "colder" method.…
-3
votes
1 answer

"not a statement" error

im actually pretty new into java , my homework was to create a array . After a while of searching for a good video i found this . -- If i compile this blue j shows me that "int 1=0;" is not a statement . Can someone tell me where the mistake is ?…
Y.KI
  • 1
-3
votes
1 answer

How to draw a brick (Rectangle) on Java?

I'm doing an assignment. This is the first part of the assignment: Drawing a single brick These are the steps to draw a brick: Construct a new Rectangle object. Set the position of your rectangle according to the coordinates that were passed in as…
J.Doe
  • 47
  • 1
  • 6
-3
votes
1 answer

How do I go about displaying a colored house using java with BlueJ?

import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.geom.Point2D; import java.util.Scanner; import javax.swing.JComponent; public class CircleComponent extends JComponent…
mshah926
  • 3
  • 2
-3
votes
1 answer

Java HangMan Game

I'm doing this hangman project, and I'm almost done, but I can't get the output to show all of the correct letters in place of the underscore, instead it only shows the correct letter that was just entered. Please help. import…
-3
votes
1 answer

Why wont my simon game work and what do i need to do so it works

Im making a simon game and i have no idea what to do. I got sound and all that good stuff working but as for everything else I have no idea what im doing. I need some help making the buttons work and flash in the right order. (comments are failed…
AECapuano
  • 3
  • 3
-3
votes
1 answer

What is the output?

What is displayed by Line 1 Below? BlueJ prints out A@18fea98, but I don't think this is correct. Please help, thank you. class A{ private int x; public A(){ x=0; } } //test code in client program A test = new…
J. Doe
  • 1
  • 1
-3
votes
1 answer

Mapping Color Codes To Int in Java

I'm trying to write a change color method in Java that accepts an int parameter and changes that color based on that int. Valid colors will be in the range 1 - 6 for the six colors. You may decide which number (1-6) maps to which color. If the value…
AlephZed
  • 31
  • 4
-3
votes
2 answers

Java Printf Help in formating

void catalog() { System.out.printf("\n%-5s%-5s%-15s%-15s%-6s%-15s%-5d\n", "Sno.","B.No.","BOOK-NAME","AUTHOR-NAME","COPIES","PUBLISHER","PRICE"); for(int i=1;i<53;i++) System.out.print("-"); …
-3
votes
3 answers

Incompatible types: boolean cannot be converted to double (error)

import javax.swing.JOptionPane; import java.util.Scanner; public class pay{ static Scanner sc; public static void main (String[]args) { double Regpay = 8; double OThour = Regpay * 1.5; double hours = 0; double gpay = Regpay * hours; …
-3
votes
3 answers

Java nested loops

Program Description: Write a program to print 21 rows of X's in the shape of a large X as illustrated below. Be sure so the two rows intersect at the "11" row. Here is what I want as an output: Here is what I have so far. public class…
Basam
  • 41
  • 7
-3
votes
1 answer

Faced BlueJ Java questions

"What is the format of the first line of a method?" It is depends on the developer design right? But somehow, but how am I to write a proper answer other than mine. "How can you view javadoc for a class?" This is the most difficult question that i…
Jack Wong
  • 33
  • 6