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

Java: How to open JOptionPane from a JButton

I have a program which has many JButtons which opens jframes, I want my help button to open a JoptionPane message box, but everytime I click on the help button nothing happens. //Main Menu import javax.swing.*; // Create Main Menu page import…
2
votes
5 answers

"Cannot Open a.exe" Error in C++

I'm trying to compile my C++ program, but when I press the "Build" button, it displays the following error message: c:/gnat/2010/bin/../libexec/gcc/i686-pc-mingw32/4.3.6/ld.exe: cannot open output file a.exe: Invalid argument collect2: ld…
AmbiguousX
  • 1,704
  • 4
  • 24
  • 39
2
votes
5 answers

Program won't always print out the longest string

What i'm trying to do below in the code, is get the user to enter two sepearate strings i know i have used first name and last name but just ignore that. So the user enters two strings and it should print the longest string. my program does not…
Mark Doherty
  • 21
  • 1
  • 5
2
votes
3 answers

Java - Sorting a 2D Array by Row Sum

Trying to write a method that swaps the rows of a 2D array in order of increasing row sum. For example, if I have the following 2d array: int [][] array = {4,5,6},{3,4,5},{2,3,4}; I would want it to output an array as so: {2 3 4}, {3 4 5}, {4 5…
Andrew
  • 45
  • 9
2
votes
1 answer

Pseudo Code in jGrasp

While writing pseudo code for java in jGrasp, do we write it in a comment or do we write it like any other code? I have already read the wiki page but wasn't able to reach a satisfactory understanding.
A.Garg
  • 59
  • 1
  • 9
2
votes
2 answers

Java Fraction Calculator

I don't know why my fractions won't reduce. I think it's because I didn't call it but I don't know where to call it. (sorry the spacing is so bad. they never check that at school) import java.util.*; public class FracCalc_Egg { public static…
e-kim
  • 21
  • 1
  • 1
  • 4
2
votes
1 answer

Need to reprompt a statement, but my code continues to the next statement,

In the while statement, after you type a wrong direction i get an error but then procedes to the next question. How can i format it to reprompt for a valid direction? don't know if i should use do while or not to me this seems like the correct…
Javabegin
  • 23
  • 4
2
votes
4 answers

Factorial Issue

I am new at coding Java, but I need to write a program that is from integer 1 to n. The program would ask the user to enter a positive number and if it is not positive then it will ask for another number. Once the positive integer is entered for n…
Frank
  • 137
  • 9
2
votes
1 answer

Issue with output for Pig latin program

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

Converting text file to all uppercase letters

I have an assignment for class and I have to make a program that takes an existing file and converts all the letters to uppercase. Below is part of the code (specifically the loop): // Read lines from the file until no more are left. while…
nerd4life
  • 63
  • 2
  • 3
  • 10
2
votes
2 answers

How to fix the compiler error in this program?

So i'm a student in high school new to the Java language and i'm using this program called jgrasp, which we use to program java. I just got the program for home to try to finish off a lab I was working on and when I compile, this shows up: …
MTNLegit
  • 29
  • 1
  • 1
  • 4
2
votes
1 answer

How to Create an Equals Method

I need help creating an equals method. The method is: boolean equals(Zombie other) The description specifically says: "Accepts another Zombie object as an argument and returns true if the zombie has the same name and same degree of infection,…
JessNicole27
  • 63
  • 1
  • 7
2
votes
3 answers

Array required but (class name) is found

import java.util.Arrays; import java.util.Scanner; class MixNumberWithUnit_AM{ String unit; Mix_AM mixNumber; public MixNumberWithUnit_AM (String str) { String[] abc= parseUnit(str); mixNumber= new Mix_AM(abc[0]); unit…
user2868770
  • 21
  • 1
  • 2
2
votes
2 answers

G++ Not found, I've already tried 3 different compilers

I can compile C code no problem using MinGW but for some reason I can't compile C++. I already tried other compilers, cygnus and cygwin. I'm using JGrasp. Here's the error feed: ----jGRASP wedge2 error: command "g++" not found. ---- This…
Ceelos
  • 1,116
  • 2
  • 14
  • 35
2
votes
2 answers

comparing numbers in list from an input file

I'm in intro to java and am stumped on this one challenge. I have searched my book and the helpful links on here but haven't found anything that pertains to what I'm doing. The challenge is to create a list of numbers in a notepad file. The java…
1
2
3
20 21