Datasets:
ArXiv:
License:
Download data/train/akash-coded/FSD_Java/Lesson-1/AccessSpecifiers1.java from RepoFusion/Stack-Repo: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/bbc90aef76314892f2d54f85da32b81503fb7eb3/data/train/akash-coded/FSD_Java/Lesson-1/AccessSpecifiers1.java
- Command line
-
hf download hf://datasets/RepoFusion/Stack-Repo@bbc90aef76314892f2d54f85da32b81503fb7eb3/data/train/akash-coded/FSD_Java/Lesson-1/AccessSpecifiers1.java
-
curl -L -o AccessSpecifiers1.java https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/bbc90aef76314892f2d54f85da32b81503fb7eb3/data/train/akash-coded/FSD_Java/Lesson-1/AccessSpecifiers1.java
421 Bytes
| // Class is having default access modifier | |
| class DefAccessSpecifier | |
| { | |
| void display() | |
| { | |
| System.out.println("You are using default access specifier"); | |
| } | |
| } | |
| // Driver class | |
| public class AccessSpecifiers1 { | |
| public static void main(String[] args) { | |
| //default | |
| System.out.println("Default Access Specifier"); | |
| DefAccessSpecifier obj = new DefAccessSpecifier(); | |
| obj.display(); | |
| } | |
| } | |