Questions tagged [drjava]

A lightweight IDE for java, designed primarily for students

DrJava is a lightweight development environment for writing Java programs.

It is designed primarily for students, providing an intuitive interface and the ability to interactively evaluate Java code. It also includes powerful features for more advanced users. DrJava is available for free under the BSD License, and it is under active development by the JavaPLT group at Rice University.

For more information and downloads, visit the official site.

188 questions
-3
votes
1 answer

NullPointerException in Edhesive code

I've been working on this code for a while now, and right after I finally get it to compile it gives me an error code: java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at…
-3
votes
4 answers

What is the meaning of i=j--

this is my first question here, and I'm glad to join the community. I have a test tomorrow, and in one of the examples there is that line i=0; j=2; z=2 i=j--; What is the exact operation that is done? Because I know that j-- means j-1…
Román
  • 136
  • 1
  • 9
-3
votes
2 answers

Writing Methods for a Person class

I am trying to write a constructor and a method that satisfies the following output and I am having trouble getting started. 4.9 20.0 0 false 4.9' person with $20.00 and 0 tickets 4.9' person with $20.00 and 3 tickets 4.9' person with $20.00 and 1…
Alex Chavez
  • 185
  • 1
  • 10
-3
votes
2 answers

Junit tests keep failing, but code is 100% correct

I'm a new Java programmer and I keep having issues with JUnit. I ran a pre-tested code and a test on my machine, but they failed eventhough they passed on another one. Code and test are 100% working, I'm guessing something wrong with my computer…
az_1993
  • 27
  • 8
-4
votes
1 answer

I have a mac and Dr java isn't running my programs at all

Dr java compiles my code just fine, however, it doesn't run them at all, it only prints "Static Error: This class does not have a static void main method accepting String[]." . I tried the exact code on windows and it worked perfectly. I don't know…
-4
votes
1 answer

I am confuse on with where to start with this method?

I am having trouble with my explore method() I have to create a picture whose height is the max of the heights, and width is the sum of the widths of the stored pictures.The pictures in the Album should be copied so far are copied into a new picture…
Smile13
  • 3
  • 1
-5
votes
2 answers

Tip Calculator Help in Java?

import java.util.Scanner; public class TipCalc { public static void main(String[] args); Scanner cin = new Scanner(System.in); { System.out.println("Tip Calculator"); System.out.println("==============="); System.out.print("Enter…
mike Chan
  • 1
  • 2
-6
votes
1 answer

DrJava tells me there's no main, but main is defined within the class declaration

I'm trying to learn Java using DrJava. When I try to run this bit of code DrJava tells me: Static Error: This class does not have a static void main method accepting String[]. What I don't get is why DrJava tells me there's no main. It's the first…
Gavinaldi
  • 1
  • 2
1 2 3
12
13