| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Java Lessons - Input Processing Output

Page history last edited by Steve Sweeney 8 years, 2 months ago

 

 

Course        
3U 4U Topic/Presentations
Reference/Notes
Videos
Exercises
    First Java Program Note: First Program - Hello World  
IPO Exercises
    String Output Note: String Output VT: Basic Output Exercises: Output
    Numeric Output Note - Numeric Output  
   

Primitive Data Types

(int, char, double, boolean)

     
    Output of Variables      
    Formatted Output

Coding Examples

Quick Reference Sheet
   
    Variables & Input     Exercises: Input
    Input & Output Summary Note: User Input & Output    
    Basic Calculations     Exercises - Calculations
   

Advanced Calculations

(modulo, math functions)

Note: Mathematical Operations VT: Mathematical Operators & Modulo

Exercises - Mathematical Functions

[Modulo Exercises]

    Random Values Note: Random Numbers  
    File I/O: Text Files      
    File I/O: Binary Files      

 

 

 

 

<?php
$video_ID = 'your-video-ID';
$JSON = file_get_contents("https://gdata.youtube.com/feeds/api/videos/{$video_ID}?v=2&alt=json");
$JSON_Data = json_decode($JSON);
$views = $JSON_Data->{'entry'}->{'yt$statistics'}->{'viewCount'};
echo $views;
?>

Comments (0)

You don't have permission to comment on this page.