Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public float returnFloat(int a) {
- return a;
- }
- public static void main(String[] args) {
- Main main = new Main();
- System.out.println(main.returnFloat(6));
- }
- }
- // Console output was "6.0"
Advertisement
Add Comment
Please, Sign In to add comment