Questions tagged [jgrasp]

jGRASP is a lightweight development environment, created specifically to provide automatic generation of software visualizations to improve the comprehensibility of software.

jGRASP is a lightweight development environment, created specifically to provide automatic generation of software visualizations to improve the comprehensibility of software.

jGRASP is implemented in Java, and runs on all platforms with a Java Virtual Machine (Java version 1.5 or higher). jGRASP produces Control Structure Diagrams (CSDs) for Java, C, C++, Objective-C, Ada, and VHDL; Complexity Profile Graphs (CPGs) for Java and Ada; UML class diagrams for Java; and has dynamic object viewers that work in conjunction with an integrated debugger and workbench for Java. The viewers include a data structure identifier mechanism which recognizes objects that represent traditional data structures such as stacks, queues, linked lists, binary trees, and hash tables, and then displays them in an intuitive textbook-like presentation view.

Related Tags

313 questions
7
votes
2 answers

Java leap year code problems

import java.util.Scanner; public class Hw2JamesVaughn { public static void main(String[] args){ Scanner input = new Scanner(System.in); System.out.print("Enter a year: "); int year = input.nextInt(); …
Rick Vaughn
  • 71
  • 1
  • 2
6
votes
2 answers

Why do I need brackets here? Java: "if (true) int i=0;"

public class Test{ public void newMethod(){ if(true)int i=0; } } The above code gives me the following error Test.java:4: error: '.class' expected if(true)int i=0; ^ But if I write it like this public class…
TonyTerminator
  • 119
  • 2
  • 8
5
votes
3 answers

Nest Loops, Cannot figure out how to code this

Hey I have a question I have been trying to figure out for a couple hours now, I need to use nested loops to print the following -----1----- ----333---- ---55555--- --7777777-- -999999999- This is what I have so far. public…
ItsRainingHP
  • 139
  • 1
  • 4
  • 18
3
votes
2 answers

How to get started with JFreeChart?

I have downloaded the latest version of JFreeChart (1.0.14) and want to start using it. I only have imported standard Java packages like java.io.* before and never dealt with 3rd party libraries. What do I need to tell jGRASP so it knows about and…
razshan
  • 1,128
  • 12
  • 41
  • 59
3
votes
2 answers

JavaFX 11: "JavaFX runtime components are missing"

I'm trying to run sample JavaFX code (taken from the 5th edition of Java Illuminated) under JavaFX 11 and Java 11, using jGRASP 2 under Windows 10. I've read through the "Getting Started with JavaFX" guide (https://openjfx.io/openjfx-docs/)…
Jim Huggins
  • 45
  • 1
  • 5
3
votes
2 answers

Candy Machine Java

Please help solve the following code I got stuck (i'm new to java) the homework said I need to build a computer candy machine in code. here is the output of the homework: Welcome to Shoreline's Computer Candy Machine! (All candy provided is…
3
votes
1 answer

Java autocomplete in jGRASP

How I can add autocomplete for java in jGRASP? I want to use autocomplete in jGRASP. I can't find it. Is this a plugin? I use windows
Yaniv
  • 73
  • 1
  • 5
3
votes
2 answers

How to apply a math function to each object of an ArrayList

I'm having trouble figuring out how to apply a math operation to each item of an ArrayList. The ArrayList will be user inputted so there's no telling how many items would be within it. Is there a method that might aid in doing this?
3
votes
1 answer

java sorted node list example

I am new to node lists and I need to search check whether a PersonNode associated with the given ID is in the list the is my PersonNode class public class PersonNode { // instance variables private int m_ID; private String m_name; private PersonNode…
Jennifer
  • 210
  • 1
  • 11
3
votes
2 answers

Math.abs() reporting error: cannot find symbol

I'm new to java and I'm trying to figure out how the Math functions work. I can't figure out what I'm missing. Here's the entire program: public class Math { public static void main(String args[]) { double x = Math.abs(4); …
rayden54
  • 251
  • 1
  • 5
  • 14
3
votes
2 answers

NetBeans or Eclipse equivalent of jGrasp's Debug Object Viewers?

Jgrasp has a really cool debug viewer: http://www.jgrasp.org/viewers.html Without any setup, you can see how your objects are interacting visually. It's been really handy for working with linked lists. However, overall, I hate jGrasp. Is there…
Basil
  • 403
  • 5
  • 14
3
votes
1 answer

How to get eclipse to mark where a for loop or if statement begins

I used JGrasp for a while, and now, while I realize Eclipse is MUCH Better, there is one thing I love in JGrasp, it would always mark where a for loop or if statement went to (ended.) You can accomplish sort of the same things by highlighting a…
user1718682
  • 71
  • 1
  • 8
2
votes
1 answer

Java Compilation, Packages, and Relative Paths

While using jGRASP I noticed that the output for programs in packages was slightly different than normal, specifically the program names appeared to be relative paths starting from the top of the class. For example, for a Java program that includes…
user1017523
2
votes
3 answers

Parsing a String to an Integer

So my biggest problem is that I cannot seem to remember how to parse a string into an int so that I can idiot proof my code. My goal here is to find out if the user enters in a word instead of an int and then I can explain to them what an integer…
Snare_Dragon
  • 59
  • 1
  • 11
2
votes
1 answer

How do I properly use Parallel Arrays using Java Util.Scanner?

I am working on an assignment with arrays. I have to use parallel arrays, however, I am having difficulties with the desired output I want the code to produce. The trouble is at the end of the code where it asks to enter in the day. I tried doing…
1
2 3
20 21