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
-2
votes
3 answers

Cannot find symbol error while converting Celsius to Fahrenheit Java

I am really new to all of this stuff and I am trying to convert Celsius to Fahrenheit in jGRASP Java. The code i am using is attached in the picture, also the error can be seen in the other picture. Error message
-2
votes
2 answers

Displaying values which needed to be added that are present in a for loop in java

The purpose of the program is to collect how much a person makes every week, add it up and display how much they make in a month. The for loop works just fine. My question is how do i add all the values of payweek and display them in the print…
A.Garg
  • 59
  • 1
  • 9
-2
votes
3 answers

Running in an error using BigInteger class

I'm currently in the process of doing an assignment for one of my class using the BigInteger class. The problem I'm running into is with the .pow method. its giving me this error BigNumberExample1.java:25: error: incompatible types: BigInteger…
Reed Sager
  • 25
  • 3
-2
votes
1 answer

Visualize recursion using jGrasp

the one that I like to see how it works graphically is this one public boolean splitArray(int[] nums) { int index = 0; int sum1 = 0; int sum2 = 0; return recallArray(nums, index, sum1, sum2); } public boolean recallArray(int[]…
Bodhert
  • 17
  • 1
  • 6
-2
votes
1 answer

Can someone help me with my button game code?

I think my problem is in my delay method. My game is supposed to have a green button first and randomly will turn red. If the user presses this RED button, they lose. My code doesn't detect when the red button is clicked I think because of my delay…
-2
votes
1 answer

Jgrasp java 26 error: class, interface, or enum expected

I'm working on a project for my class and every time I try to compile I get the following error in jGrasp: Lab 1.java:26: error: class, interface, or enum expected Module main() ^ 1 error I have tried looking for the error in my code but can't find…
-2
votes
1 answer

How do i know if a Jcheckbox is checked?in GUI

can you tell me in details how do i know if a jcheckbox is checked or not? method isSelected didn't work with me it gives me an exception while running { Sandwich = new JButton("Tall"); contentPane.add(Tall); …
-2
votes
2 answers

Printing a string in println

Hello This is what I am working with right now import javax.swing.JOptionPane; public class DialogViewer2 { public static void main(String[] args) { String name = JOptionPane.showInputDialog("What is your name?"); …
-3
votes
1 answer

How do I restart a game in java by pushing a key?

I'm a beginner at java and can't figure out how to restart my game. I've looked at other posts but none work/I can't figure out the code. How do I write the code to restart the game by pushing "y" or "n"? I've tried to use code to reset it, but it…
Mia
  • 3
  • 1
-3
votes
1 answer

Trying to understand how recursion works

The code below asks the user to input a number and it adds each of the numbers up to get the sum. For example if i input 123 it will do (1+2+3) which will then output 6. I have the recursive method which is: public static int sumDigits(long n)…
Andrey
  • 23
  • 4
-3
votes
1 answer

24 hour clock to 12 hour clock conversion - curly brace pairing issue

I'm a beginner learning Java, and I'm trying to write a program to convert a user-inputted time to 12-hour time, or if it is supplied in 12-hour time format, to convert it to 24 hour time. I have written some code, which worked as I tested it step…
-3
votes
1 answer

Having trouble getting Jgrasp to compile my code

Below is my code which is throwing compile-time error. import Java.util.Scanner; class gucci{ public static void main(String args[]){ Scanner ice = new Scanner(System.in); int lost = 5; int sauce = 18; lost++; …
Yo Skolo
  • 3
  • 1
-3
votes
2 answers

troubles with arrays, index out of bounds exception

So i've been at this problem for awhile, It's a piece of code that is suppose to display the data that has already been collected and sorted from the user. First ill post the code than ill post the error. import java.util.Scanner; import…
kyle
  • 9
  • 2
-3
votes
2 answers

Issue with Pig Latin not printing all text

So im new to coding and i am having some issues... My program is supposed to ask the user for input, and will need to assume that all the input is lowercase... and need to assume there are no extra spaces, and will need to assume it ends with a…
Frank
  • 137
  • 9
-3
votes
1 answer

Returning String Arrays and Arrays operations in JAVA

I am writing this using JAVA. I am putting objects into my vehicleList array and I am having issues returning the array in my getVehicleList class. My vehicleList is an array of Vehicle[]. I keep getting "String cannot be converted to String[]. I…
1 2 3
20
21