Skip to content

Instantly share code, notes, and snippets.

View dhuma1981's full-sized avatar
🎯
Focusing

Dhrumil Shah dhuma1981

🎯
Focusing
View GitHub Profile
@dhuma1981
dhuma1981 / scrollbar_demo.dart
Last active January 12, 2021 14:44
Show scrollbar in ListView
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
final ScrollController _scrollController = ScrollController();
@override
@dhuma1981
dhuma1981 / VacationLabsHackathaon.java
Created March 21, 2013 06:46
Write a function which takes 'n' as an argument and prints all the numbers from 1 to 'n', except that: (a) if a number is divisible by 3, it should print 'Hip' instead of the number, (b) if divisible by 5 it should print 'Hop', and (c) if divisible by 3 & 5, it should print 'Whazaa' instead of the number.
import java.util.*;
class VacationLabsHackathaon
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n;
System.out.println("Enter a number : ");
n=sc.nextInt();
ProblemFunctionClass pfc=new ProblemFunctionClass();