Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Aufgabe4 {
- public static void main(String[] args) {
- int wert = 0x1f;
- int pruef;
- int summe = 0;
- pruef = wert & 0x1;
- wert = wert >> 1;
- summe = summe + wert & 0x1;
- wert = wert >> 1;
- summe = summe + wert & 0x1;
- wert = wert >> 1;
- summe = summe + wert & 0x1;
- wert = wert >> 1;
- System.out.println(summe);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement