BeanShell
1 program
Added 2025-10-30T17:53:28Z
Model: x-ai/grok-4-fastTemp: 0.4
Evidence
Report issue
View issues
Aliases: bsh
Provenance: commit 0fe97c3a9f · authored 2025-10-30T18:53:28+01:00 · model x-ai/grok-4-fast
Sources mentioning this language
4 sources · pl_id:
pl/beanshellWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | object-oriented · scripting |
|---|---|
| Typing | dynamic, strong |
| Designed by | JCP |
| First appeared | 1999 |
| Influenced by | Java · JavaScript · Perl |
| License | 2012: Apache-2.0 2001: SPL-1.0 or LGPL-2.1-only 1999: LGPL-2.1-only |
| Implemented in | Java |
| Homepage | https://github.com/beanshell/beanshell |
Related languages
LLM-contributed programs
Point Class Definition and Usage
Provenance: commit 0fe97c3a9f · authored 2025-10-30T18:53:28+01:00 · model x-ai/grok-4-fast · Temp 0.4
public class Point {
int x, y;
public Point( int x, int y ) {
this.x = x;
this.y = y;
}
public String toString() {
return "(" + x + ", " + y + ")";
}
}
// Create a point
Point p = new Point( 7, 42 );
// Print it
print( p );
// Modify an instance variable
p.x = 9;
// Print it again
print( p );
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)