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
1
vote
0 answers

Audio (.wav) plays when run from jGRASP but not from Eclipse or IntellliJ IDEA

This code works fine and plays sound in jGRASP but when it is run from a project in IDEA or Eclipse, no sound plays. How can I get this working on all the IDEs? public void playClip( String clipPlay ){ AudioClip clip = null; File filePlay =…
1
vote
1 answer

Jgrasp C++ compile issues

When I try to compile a simple source code in c++ using jgrasp i get this ----jGRASP wedge2 error: command "g++" not found. ---- This command must be in the current working directory ---- or on the current PATH to use this function. ----…
wat
  • 69
  • 2
  • 10
1
vote
3 answers

Need help writing TAB to a toString method

import java.util.Arrays; public class example { private int numbers[]; //instance variable private String result; public example() { numbers = new int[10]; Arrays.fill(numbers, 42); } public example(int[]…
user1804737
  • 65
  • 1
  • 3
  • 9
0
votes
3 answers

changing jvm heap size - jgrasp

I know how to increase java heap size on command line using flag -Xmx, I need to run my program in jgrasp, how do I increase the heap size for my program in that IDE? System.out.println("---->"+Runtime.getRuntime().maxMemory()); prints…
anon
  • 1,101
  • 3
  • 17
  • 33
0
votes
1 answer

error when reading data, manipulating it, and outputting it

Having problems in my while loop. I'm getting a Exception in thread "main" java.util.NoSuchElementException: No line found. at java.util.Scanner.nextLine(Scanner.java:1516) at Payroll.main(Payroll.java:70)` Here's the code: import…
Leon
  • 87
  • 1
  • 2
  • 9
0
votes
2 answers

Adding spaces between operation marks

Whats the difference between these two operations? I imagined: length - 1 to be the same as length-1 but I am getting an error with length when using the latter using operation here: for (int i = length - 1; i >= 0; i--) int length =…
Epic Coder
  • 19
  • 6
0
votes
0 answers

How to read and overwrite the same file in java (jGRASP)

I am having a hard time figuring out how to overwrite to the same file right after reading it. The point of this program is to display the value of the previous high score while the new record score gets stored so I can keep comparing them for…
Rachel
  • 1
  • 1
0
votes
1 answer

java does not run with j-grasp on my iMac

I am getting this error when I try to run Java with j-grasp: ----jGRASP wedge: exit code for process is 1. ----jGRASP: operation complete. ----jGRASP exec: javac -g Palindrome.java The operation couldn’t be completed. Unable to locate a Java…
0
votes
1 answer

Why is my jGRASP project file so bloated?

For several years I've maintained a number of Java projects using the jGRASP IDE. These projects tend have around 20 or so source files apiece. I'm used to the project files (.gpj) being fairly readable in an editor, and around 4 KB in…
Daniel R. Collins
  • 893
  • 1
  • 8
  • 22
0
votes
1 answer

I am unsure how to list invalid octets if there are others that are valid

I need to print a hypothetical IP address. I must print if all 4 octets are within range, but I do not know how to print if 1 or more octets aren't. My teacher's instructions: You are going to write a program that will accept 4 integer numbers from…
Orion27
  • 9
  • 1
0
votes
1 answer

Unable to compile of C++ in JGrasp

I am trying to compile a simple Hello World program in C++ on jGrasp but I am getting the following error ----jGRASP exec: g++ -g -o jGHello.exe jGHello.cpp -lglu32 -lfreeglut…
K S M
  • 21
  • 1
  • 3
0
votes
1 answer

Exception in thread "main" java.util.IllegalFormatPrecisionException: 2, tried to fix the formatting but did not work jGRASP

I am trying to make a program which averages two numbers. public class Average { private double one, two, average; public void setNums(double num1, double num2) { one=num1; two=num2; } public void average( ) { …
SEICHRO
  • 13
  • 1
0
votes
2 answers

How can I use the variable I initialized outside its loop?

When I try to run the program it gives me an error that plainPizza has not been initialized. I already tried to initialize it outside its loop with plainPizza = getPlain() but I do not want the getPlain method to repeat (which is what happened when…
mojava
  • 35
  • 4
0
votes
4 answers

How can I print a comma separated list on 1 line with the last number ending without a comma/space/new line using a FOR loop?

for (i = 0; i < hourlyTemp.length; i++) { System.out.print(hourlyTemp[i] + ", "); } this would give me the output that I want but with a comma the end. How can I do this without the comma at the end? is it even possible with a for-loop?
Rony Caba
  • 1
  • 1
0
votes
1 answer

I have an error while trying to Compile using jGRASP and not sure how to fix

I recently got into programming from Highschool and started using jGRASP. When I attempted to compile my code, I got this as the output. ----jGRASP exec: javac -g AsciiBox.java ----jGRASP wedge error: command "javac" not found. ---- This…
SEICHRO
  • 13
  • 1