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
1 answer

How To Properly Play an Audio File That is Not in a Project

I cannot find much about this. My college is using JGrasp, which I think is terrible from what I have heard from people using much better IDE's. My professor doesn't even use the JGrasp Project at all and makes us use .java files. I managed to code…
TofuMars
  • 11
  • 2
1
vote
1 answer

Error with jGrasp and MinGW - Cannot compile - code 0xc000007b

I had a Windows 7 computer, where I wrote C programs with jGrasp. After switching to Windows 10 I installed jGrasp, MinGW (including g++), and Java. I set my PATH to the MinGW bin and the Java jre bin. When I open code that used to compile…
TechTyler
  • 13
  • 2
1
vote
1 answer

Converting words to Pig Latin

i hope this finds you well. I am fairly new to Java and also to this website. Although this may seem long, i only need help with two things, so please help, and like i said I'm new to all of this, so the more thorough the better. I have to do a…
1
vote
2 answers

can i compare using .equal() for two or more things in the same time

I should Define four boolean variables as follows: Freshman for students in levels 1 or 2. Sophomore for students in levels between 3 and 5. Junior for students in levels between 6 and 8. Senior for students in levels 9 or 10. the user enters the…
Duha
  • 92
  • 1
  • 9
1
vote
1 answer

How to get multiple inputs on the same line without white space

I am doing a program for my CS class. It wasn't hard to setup and it does what it is supposed to. My problem though is that I want it to take all the inputs on the same line without any white space. The program is supposed to take the first 9 digits…
snipem1438
  • 45
  • 2
  • 10
1
vote
0 answers

Compile to c++11 in Jgrasp

I have Jgrasp set up and running fine with c++. I want to use c++11. I get the following compile error: gift1.cpp:52:24: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11 Which I attempt to solve by clicking Settings,…
David Lerner
  • 344
  • 3
  • 14
1
vote
1 answer

Insertion List Linked in Java (Debug)

I am trying to build a linked list as is shown below: **list-> [C] - [B] - [A] -> NULL** Here is my main: import java.util.*; class LinkedListF { public static void main (String [] args) { Node aNode = new Node ("A", null); …
1
vote
1 answer

jGrasp Java String to Boolean error! "ClientID.java:20: error: incompatible types: String cannot be converted to boolean"

I have this line of Code, which i am having problems with. name = (JOptionPane.showInputDialog("What is the name of the new Client? \n (Format) \" Jake Michael Drewberg\" ")); nameCheck= JOptionPane.showInputDialog("Please check that this is…
1
vote
5 answers

Hot to stop the program from crashing after a String is entered instead of an int

How do I stop this from crashing when a String is entered instead of an int? Here is what i have. I've tried looking up some tutorials but I still couldn't figure it out. Thanks for the help guys. When a String is entered i need it to tell the user…
user4068770
  • 47
  • 2
  • 12
1
vote
4 answers

Add an outside number to each element in an array

I need to add an outside number to EVERY number in an ArrayList. I've looked for 2 days trying to find a similar answer and found nothing. ArrayList list = new ArrayList(); list.add(12); list.add(45); list.add(23); …
JessNicole27
  • 63
  • 1
  • 7
1
vote
1 answer

Shipping Charges Program Error

if(weight <= 2) { charges=miles*1.10; } else if(weight > 2 && weight <= 6); { charges=miles*2.20; } else if(weight > 6 && weight <= 10); { charges=miles*3.37; } else if(weight > 10 && weight <= 20); { …
Java Newb
  • 101
  • 1
  • 1
  • 7
1
vote
1 answer

How do I implement a mouse event outside the Java frame?

I am trying to make a return program which will press the enter key when the left mouse key is clicked... with courtesy of http://www.java-tips.org/java-se-tips/java.awt/how-to-use-robot-class-in-java.html (for void typing method) and…
user2999870
  • 345
  • 4
  • 12
1
vote
3 answers

How to cast a if-else switch statement

I think I need to cast this code. I need to return an int but I have to multiply by percents and dont want them to be cut off. Should I cast it like this brains = (double)brains - (this.getBrains() * 0.01); Also should I cast the return statement…
JessNicole27
  • 63
  • 1
  • 7
1
vote
0 answers

cannot implement actionPerformed(ActionEvent) in ActionListener

I am making a profile encryption program with 2 ciphers. I want to have a GUI with buttons for enciphering, deciphering and exiting. My problem is with the actionPerformed method. It needs to throw the exception that the outputStream throws. This…
Greatmar2
  • 89
  • 1
  • 11
1
vote
5 answers

Java, Return true if array contains duplicate values

I am trying to have a method (duplicates) return true if a given array called x (entered by user in another method), contains duplicate values. Otherwise it would return false. Rather then checking the entire array, which is initialized to 100, it…
andrsnn
  • 1,591
  • 5
  • 25
  • 43