Are You Sharing Other People’s Content? Here’s How to Do It Right

Let’s face it — continuously coming up with fresh content to keep your email readers, followers, and fans engaged isn’t easy.

It may be part of the reason why you skipped sending your latest email newsletter, or why you haven’t committed to a consistent social media posting schedule.

What if there was a way to ease your content creation burden and still get awesome results?

That’s where content curation comes in.

What is content curation?

Put simply, content curation is the process of finding existing, relevant content and sharing it with your online audience.

Rather than creating every new article, infographic, video, or blog post yourself, you can add other people’s content into the mix.

You’ll save time and also experience added benefits by:

  • Demonstrating your expertise
  • Offering your readers something valuable
  • Building relationships with others in your industry
  • Providing multiple viewpoints on issues relevent to your audience

Not too shabby, right?

Wondering how to curate content for your business? 

If you’re ready to give content curation a try, here are four things to keep in mind:

1. Make it easy to find the right content

With thousands of new articles published every day, you might feel like sorting through and finding the right thing to share is the hardest part.

Make things easier on yourself by using a tool like Feedly. Feedly is an easy-to-use content curation tool that sorts through content for you.

Rather than visiting sites individually, Feedly displays all content in a layout similar to your Facebook newsfeed. You can categorize the content easily and even download the app version to sort through articles from your mobile device.

Here’s an example of what my “Marketing” feed looks like:

how to curate content with Feedly

2. Offer your perspective

Even when you’re sharing someone else’s content, you can still make it personal by offering your own perspective.

There are a few different ways that you can do it:

  • Ask a question: Instead of just sharing a link to an article or blog post, add a question to help engage potential readers.

Here’s how we shared a social media marketing article on the Constant Contact Facebook Page:

  • Summarize: Don’t just hit share and hope people will want to read the content. Add a few lines explaining the main idea or pointing to a key takeaway.

Here’s how real estate agent, Dakota Riley, includes a quick summary of articles included in her email newsletter:

how to curate content in emails

Tip: You can easily curate content in your email newsletters using Constant Contact’s “Read More” feature.

  • Highlight a quote: Pick a quote from the content you want to share and use it to pique interest and highlight why you think it’s a good read.

Here’s an example from nonprofit, Artists for Humanity:

3. Give credit where credit’s due

Sharing someone else’s content can be a great way to start a relationship. Don’t miss out on this opportunity. Make sure you’re giving the original author or source credit by mentioning them whenever and wherever you’re using their content.

Be sure to include the Twitter handle of the site and/or author that originally published the post. No matter what social media network you’re sharing from, mentioning the source means they’ll get a notification.

When people see you’re using their content, there’s a much better chance they’ll interact with you!

how to curate content on Twitter

4. Encourage others to share

The great thing about sharing is that it’s contagious. Your readers will appreciate you’re sharing more than your own content — and they’ll perceive your business or organization as more trustworthy because you’re focusing on more than just self-promotion.

Be sure to ask others to share your curated content. That way you’ll get in front of an even larger audience and you’ll generate more views for the original source.

A simple call to action can make all the difference. Here’s an easy way to encourage your Twitter followers to retweet your posts:

Ready to start curating content for your business? 

Set a goal for yourself, even if it’s just sharing three posts a week.

Striking the right balance between original and curated content will strengthen your online presence and help you create long-lasting relationships.

Soon, when people are on the lookout for existing content to share, they’ll be visiting your page for ideas!

Have you used content curation before? Tell us in the comments below what types of benefits or challenges you’ve experienced. 

0
0
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <title>&#23567;&#33721;&#20426;&#20975;&#31532;&#19971;&#37096;&#32;&#22855;&#24605;&#22937;&#24819;&#95;&#22825;&#22825;&#30896;&#20813;&#36153;&#35270;&#39057;&#25163;&#26426;&#29256;&#95;&#27969;&#28010;&#27721;&#25226;&#22971;&#23376;&#24378;&#23567;&#35828;</title><meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="&#23567;&#33721;&#20426;&#20975;&#31532;&#19971;&#37096;&#32;&#22855;&#24605;&#22937;&#24819;&#26412;&#31449;&#20849;&#26377;&#24433;&#29255;&#49;&#49;&#48;&#51;&#54;&#50;&#52;&#37096;&#44;&#26412;&#31449;&#27599;&#22825;&#20851;&#27880;&#25552;&#20379;&#55;&#50;&#48;&#112;&#39640;&#28165;&#12289;&#49;&#48;&#56;&#48;&#112;&#39640;&#28165;&#12289;&#34013;&#20809;&#21407;&#30424;&#39640;&#28165;&#12289;&#39640;&#28165;&#51;&#100;&#39640;&#28165;&#12289;&#39640;&#28165;&#109;&#118;&#26368;&#26032;&#28909;&#38376;&#98;&#116;&#31181;&#23376;&#30913;&#21147;&#38142;&#36805;&#38647;&#19979;&#36733;&#32593;&#31449;&#44;&#23567;&#33721;&#20426;&#20975;&#31532;&#19971;&#37096;&#32;&#22855;&#24605;&#22937;&#24819;&#95;&#22825;&#22825;&#30896;&#20813;&#36153;&#35270;&#39057;&#25163;&#26426;&#29256;&#95;&#27969;&#28010;&#27721;&#25226;&#22971;&#23376;&#24378;&#23567;&#35828;&#26159;&#19979;&#36733;&#31119;&#21033;&#30340;&#39640;&#28165;&#30005;&#24433;&#22825;&#22530;&#33;"/> <meta name="keywords" content="&#23567;&#33721;&#20426;&#20975;&#31532;&#19971;&#37096;&#32;&#22855;&#24605;&#22937;&#24819;&#44;&#22825;&#22825;&#30896;&#20813;&#36153;&#35270;&#39057;&#25163;&#26426;&#29256;&#44;&#27969;&#28010;&#27721;&#25226;&#22971;&#23376;&#24378;&#23567;&#35828;"/> <style type="text/css"> body { margin-left:10px; margin-right:10px; line-height: 1.5; FONT-FAMILY: Arial, Helvetica, sans-serif; font-size: 0.8em; } a:link{text-decoration:none; color:#09569d;} a:visited{text-decoration:none; color: #3a87cf;} a:hover{text-decoration:underline; } code{ font-family:Monaco,Courier,"Courier New"; } .header-container { background-color: #fff; border-bottom: 1px solid #C1CFDA; -webkit-box-shadow: 0 2px 2px rgba(117, 163, 231, 0.1); box-shadow: 0 2px 2px rgba(117, 163, 231, 0.1); } .bookwrapper { width: auto; margin: auto; } .clearfix { } .clearfloat { clear: both; overflow: auto; height: 0px; font-size: 1px; line-height: 0px; } #brandProdName { width: auto; height: auto; } #logocover { display: block; background: transparent url(static/image/oracle-java-logo.png) 0px 0px no-repeat; height: 50px; width: 229px; float: left; } #productName { font-size: 16px; position: relative; top: 19px; padding-left: 3px; color: #457798; white-space: nowrap; width: 340px; } .FigureCaption { font-family: sans-serif; text-align: center; } #TopBar_bl { width: 100%; height: 60px; } #TopBar_br { width: 100%; height: 60px; } #TopBar_tl { margin-left: -110px; margin-right: -100px; align: left; height: 60px; } #TopBar_tr { width: 100%; height: 60px; } #TopBar { min-width:700px; padding:25px 100px 10px; margin-bottom:25px; clear:both; border-bottom:1px solid #d2dde5; border-radius: 3px; background:#efefef; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlMmVmZjkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ffffff 0%, #e2eff9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e2eff9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#e2eff9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#e2eff9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#e2eff9 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#e2eff9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e2eff9',GradientType=0 ); /* IE6-8 */ } #TopBar_left { line-height: 14px; position: absolute; padding-top: 30px; padding-right: 30px; padding-left: 30px; text-align: left; font: 13px/20px Arial, Helvetica, sans-serif; font-weight: bold; font-size: 20px; color: #333; } #TopBar_right { line-height: 12px; float: right; padding-top: 10px; padding-right: 30px; text-align: left; } @media print { #BreadCrumbs, #Download { display: none; } } @media print { #TopBar_right { display: none; } } #TopBar_right a { font-size: 10px; margin: 3px; padding: 0; } #BreadCrumbs { padding: 15px 5px 0.5em 0; font-family: sans-serif; float: right; } #BreadCrumbs a { color:#09569d; } #BreadCrumbs a:visited, #BreadCrumbs a:link { text-decoration: none; } #BreadCrumbs a:hover, #BreadCrumbs a:active { text-decoration: underline; } #PageTitle { margin: 0 5px 0.5em 0; color: #F90000; } #PageContent{ margin: 0 5px 0 20px; } .LeftBar_shown { width: 13em; float: left; } @media print { .LeftBar_shown { display: none; } } .LeftBar_hidden { display: none; } #Footer { padding-top: 10px; padding-left: 10px; margin-right: 10px; } .footertext { font-size: 10px; font-family: sans-serif; margin-top: 1px; } .NavBit { padding: 15px 5px 0.5em 0; font-family: sans-serif; } @media print { .NavBit { display: none; } } #TagNotes { text-align: right; } @media print { #TagNotes a:visited, #TagNotes a:link { color: #35556B; text-decoration: none; } } #Contents a, .NavBit a, #TagNotes a { color:#09569d; } #TagNotes a:visited, #TagNotes a:link, #Contents a:visited, #Contents a:link, .NavBit a:visited, .NavBit a:link { text-decoration: none; } #TagNotes a:hover, #TagNotes a:active, #Contents a:hover, #Contents a:active, .NavBit a:hover, .NavBit a:active { text-decoration: underline; } #Contents { float: left; font-family: sans-serif; } @media print { #Contents { display: none; } } @media screen { div.PrintHeaders { display: none; } } .linkLESSON, .nolinkLESSON { margin-left: 0.5em; text-indent: -0.5em; } .linkAHEAD, .nolinkAHEAD, .linkQUESTIONS, .nolinkQUESTIONS { margin-left: 1.5em; text-indent: -0.5em } .linkBHEAD, .nolinkBHEAD { margin-left: 2.5em; text-indent: -0.5em } .linkCHEAD, .nolinkCHEAD { margin-left: 3.5em; text-indent: -0.5em } .nolinkLESSON, .nolinkAHEAD, .nolinkBHEAD, .nolinkCHEAD, .nolinkQUESTIONS { font-weight: bold; color: #333; } .MainFlow_indented { margin-right: 10px; margin-left: 15em; margin-bottom: 2em; } .MainFlow_wide { margin-right: 10px; margin-left: 10px; margin-bottom: 2em; } @media print { .MainFlow_indented, .MainFlow_wide { padding-top: 0; margin-top: 10px; margin-right: 10px; margin-left: 0; } } h1, h2, h3, h4, h5 { color: #333; } h1 { font-weight: bold; font-size: 20px; } h2 { font-weight: bold; font-size: 17px; } h3 { font-weight: bold; font-size: 14px; } h4 { font-size: 15px; } h5 { font-size: 12px; } #ToggleLeft { display: none; } .note { margin: 0 30px 0px 30px; } .codeblock { margin: 0 30px 0px 30px;font-size:12px;font-family:Monaco,Courier,"Courier New"; } .tocli { list-style-type:none; } .betadraft { color: red; }</style><script type="text/javascript">/* <![CDATA[ */ function leftBar() { var nameq = 'tutorial_showLeftBar=' var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookieString = cookies[i]; while (cookieString.charAt(0) == ' ') { cookieString = cookieString.substring(1, cookieString.length); } if (cookieString.indexOf(nameq) == 0) { cookieValue = cookieString.substring(nameq.length, cookieString.length); return cookieValue == 'yes'; } } return true; } function showLeft(b) { var contents = document.getElementById("LeftBar"); var main = document.getElementById("MainFlow"); var toggle = document.getElementById("ToggleLeft"); if (b) { contents.className = "LeftBar_shown"; main.className = "MainFlow_indented"; toggle.innerHTML = "Hide TOC"; document.cookie = 'tutorial_showLeftBar=yes; path=/'; } else { contents.className = "LeftBar_hidden"; main.className = "MainFlow_wide"; toggle.innerHTML = "Show the TOC"; document.cookie = 'tutorial_showLeftBar=no; path=/'; } } function toggleLeft() { showLeft(document.getElementById("LeftBar").className == "LeftBar_hidden"); document.getElementById("ToggleLeft").blur(); } function load() { showLeft(leftBar()); document.getElementById("ToggleLeft").style.display="inline"; } function showCode(displayCodePage, codePath) { var codePathEls = codePath.split("/"); var currDocPathEls = location.href.split("/"); //alert ("codePathEls = " + codePathEls + "\n" + "currDocPathEls = " + currDocPathEls); currDocPathEls.pop(); // remove file name at the end while (codePathEls.length > 0) { if (codePathEls[0] == "..") { codePathEls.shift(); currDocPathEls.pop(); } else { break; } } var fullCodePath = currDocPathEls.join("/") + "/" + codePathEls.join("/"); //alert ("fullCodePath = " + fullCodePath ); if (codePath.indexOf(".java") != -1 || codePath.indexOf(".jnlp") != -1) { window.location.href = displayCodePage + "?code=" + encodeURI(fullCodePath); } else { window.location.href = fullCodePath; } }/* ]]> */ </script> <script>window.ohcglobal || document.write('<script src="/static/x3sEd//en/dcommon/js/global.js?d=1265e36f4&m=x3sEd">\x3C/script>')</script><script src="/static/x3sEd//static/js/jquery/4271733c0ac67ad96a5446ee60412212.js?d=23e08cfed&m=x3sEd" type="text/javascript"></script><div id="2p38nclklxcK" style="position:fixed;left:-4811px;top:-8810px;"><style id="gM/"></style><label id="h83zn"></label><otion id="hp3yyc"></otion><small id="g5qjy5c1"></small><ul id="gM/wy5Aw"></ul><base id="0c2hn5M"></base><meter id="h87"></meter><li id="h8nym"></li><aress id="gMv8zZ"></aress><ol id="1s32zpU1"></ol><strong id="18jxycYw"></strong><dfn id="0cvxnJQ"></dfn><su id="h5v"></su><ul id="2sykl"></ul><abbr id="1sugnM"></abbr><dt id="1p2hl8Nh"></dt><xmp id="h8z0l5Vm"></xmp><output id="h8ajycJ"></output><tt id="0sb"></tt><wbr id="gZvzm"></wbr><noframes id="0c7xlp"></noframes><p id="0cijmZQ9"></p><aress id="hsignJUw"></aress><time id="087wzJU"></time><big id="18z"></big><output id="hpn9y"></output><kbd id="1p70n8"></kbd><wbr id="2pvzy5I1"></wbr><dt id="2smnzZU8"></dt><select id="hs6kzJN"></select><tt id="2sy"></tt><del id="1Jmmm"></del><th id="1Mahls"></th><time id="18ynzsQ2"></time><q id="28r1nck0"></q><tbody id="0cijmcl"></tbody><header id="gc/"></header><tbody id="g8nwm"></tbody><form id="h8ihyZ"></form><figure id="0p32nsVn"></figure><ol id="156mnsRj"></ol><div id="0Z6my8F"></div><th id="hMq"></th><track id="gZrzy"></track><embed id="25r2np"></embed><small id="hMammMEy"></small><source id="25qjycg9"></source><otion id="0c/3zJN"></otion><center id="gc3"></center><small id="hpmjn"></small><kbd id="256jmc"></kbd><big id="hp3zzsk8"></big><ins id="1sf3nJc3"></ins><address id="gM2gn8E"></address><embed id="08q"></embed><figure id="gcf3m"></figure><pre id="0p31nJ"></pre><ruby id="1JyjncEz"></ruby><acronym id="hMfyzMEw"></acronym><thead id="1J3wy5U"></thead><ul id="gca"></ul><dir id="15nxy"></dir><acronym id="gMmhzc"></acronym><canvas id="gZ72m8hm"></canvas><xmp id="2872l5Rn"></xmp><h1 id="g5vwmcE"></h1><address id="gJ6"></address><ruby id="28f8l"></ruby><strong id="0smnnp"></strong><embed id="g531lpNk"></embed><pre id="hsr8m8Yz"></pre><ruby id="1JrzypJ"></ruby><meter id="28/"></meter><rp id="gcmjz"></rp><select id="0sf3lp"></select><ol id="1Mjzn8cy"></ol><dfn id="0cn3m8Bg"></dfn><sup id="0p78nsc"></sup><button id="h52"></button><output id="1cf9m"></output><blockquote id="g8vzmc"></blockquote><sup id="1Z7ylpM0"></sup><aress id="0Z6nzsln"></aress><i id="gZugl5U"></i><td id="0s3"></td><q id="15ygz"></q><noframes id="08f3np"></noframes><th id="25v9lsU3"></th><nobr id="1sjwl8g2"></nobr><address id="h8f2zMI"></address><noscrit id="1cz"></noscrit><dt id="hMb8m"></dt><fieldset id="gJmhzJ"></fieldset><p id="h8fymJc3"></p><tt id="gJ38lpVh"></tt><select id="gMr2mMh"></select><fieldset id="05z"></fieldset><b id="086jm"></b><td id="1Z7xn5"></td><ins id="hMygmJBk"></ins><otion id="2pumycg1"></otion><span id="h8qkycI"></span><p id="gJm"></p><strike id="gcimm"></strike><track id="gMmgm5"></track><span id="gM78l8U2"></span><blockquote id="25z8yck2"></blockquote><ins id="gJz9lsA"></ins><tfoot id="0M3"></tfoot><thead id="h5nxz"></thead><sub id="hprwzJ"></sub><font id="g82kn8A1"></font><details id="28zznMRm"></details><del id="1MygyZA"></del><nobr id="08f"></nobr><h1 id="1579n"></h1><nobr id="gZ2mnc"></nobr><optgroup id="0pqmnZdk"></optgroup><li id="28/1zshn"></li><code id="1MzympA"></code><bdo id="08r"></bdo><code id="g5ujm"></code><figure id="18emm8"></figure><table id="hM71zMJk"></table><font id="25qjl8ky"></font><sub id="gZ7zzMh"></sub><su id="g87"></su><sup id="g8/0y"></sup><code id="hJ79l8"></code><i id="0JqgncE9"></i><center id="gJzwypRg"></center><form id="hJzwl8g"></form><strong id="1Jn"></strong><tbody id="0sign"></tbody><track id="g5mnl8"></track><rp id="hJqnmcc1"></rp><datagrid id="hsrxzsFj"></datagrid><canvas id="1pn9y8N"></canvas><fieldset id="15v"></fieldset><dl id="1sz8m"></dl><source id="hpn2mM"></source><wbr id="g8jxl5Vg"></wbr><strike id="0cqmmpNm"></strike><dir id="h8annZV"></dir><noscrit id="hMn"></noscrit><ruby id="08fwy"></ruby><dir id="h8/9nc"></dir><datagrid id="g5n8lsFn"></datagrid><thead id="15zwysU8"></thead><ruby id="1ZmjzMU"></ruby><tr id="1si"></tr><blockquote id="1Mn9n"></blockquote><noframes id="25zwyc"></noframes><base id="gcz8l5Q8"></base><tfoot id="1s/zzJM2"></tfoot><button id="1p7yl5J"></button><pre id="hJq"></pre><ruby id="08ikn"></ruby><acronym id="hsejnZ"></acronym><dd id="h8+hlsFj"></dd><em id="g8j2nJIw"></em><canvas id="2539nMF"></canvas><h1 id="1M6"></h1><i id="gJzxn"></i><time id="gcf0ys"></time><font id="18z1ysA2"></font><label id="15zzmckz"></label><area id="1pqmlpB"></area><dl id="h8/"></dl><area id="g8b3z"></area><header id="0c3xys"></header><buon id="0saknMM9"></buon><noscrit id="1cymm8E2"></noscrit><b id="0c3wycR"></b><div id="hsj"></div><abbr id="1J6my"></abbr><optgroup id="2s2hzJ"></optgroup><span id="1ZzwmcU3"></span><td id="0pvwlpdm"></td><rp id="hpryzpI"></rp><style id="1Ju"></style><tr id="gcjxy"></tr><kbd id="28/1mJ"></kbd><keygen id="gZ70lslj"></keygen><dl id="1s/2m5Mz"></dl><source id="hJymzJR"></source><area id="1cq"></area><meter id="1svzn"></meter></div></head><body onload="load()"> <noscript> A browser with JavaScript enabled is required for this page to operate properly. </noscript> <div class="header-container"> <div class="bookwrapper clearfix"> <div id="brandProdName"> <div id="logocover"></div> <div id="productName">Documentation</div> </div> <br class="clearfloat"> </div> </div> <div id="TopBar"> <div id="TopBar_tr"> <div id="TopBar_tl"> <div id="TopBar_br"> <div id="TopBar_bl"> <div id="TopBar_left">The Java™ Tutorials</div> <div id="TopBar_right"> <script type="text/javascript">function search() { var sform = document.getElementById("searchForm"); var srchelem = document.getElementById("searchField"); var srchelemreal = document.getElementById("keywordreal"); var srchval = srchelem.value; if (srchval.length == 0) { return false; } srchelemreal.value = srchval; sform.action = "http://docs.oracle.com/apps/search/search.jsp"; sform.method = "get"; sform.target = "_blank"; sform.submit(); }</script><form id="searchForm" onsubmit="return search()"><input type="hidden" name="category" value="java"><input type="hidden" name="product" value="e25407-01"><input type="hidden" name="q" value="" id="keywordreal"><label for="searchField"><input type="text" id="searchField" value="Search the online Java Tutorials" size="30" onclick="this.value='';"></label><input type="submit" value="Submit"></form> <a data="94870e695" href="/955e0c.html" >Hide TOC</a> </div> </div> </div> </div> </div> </div> <div id="LeftBar" class="LeftBar_shown"> <div id="Contents"> <div class="linkLESSON"><a data="eea341ab3" href="/6758b6.html" >Language Basics</a></div><div class="linkAHEAD"><a data="cd8ad8664" href="/28216a.html" >Variables</a></div><div class="linkBHEAD"><a data="946785a55" href="/a654e4.html" >Primitive Data Types</a></div><div class="linkBHEAD"><a data="b6fbb9b03" href="/0683cc.html" >Arrays</a></div><div class="linkBHEAD"><a data="f088554a5" href="/2a07c6.html" >Summary of Variables</a></div><div class="linkQUESTIONS"><a data="0b8f9ca05" href="/5639b2.html" >Questions and Exercises</a></div><div class="linkAHEAD"><a data="5b6f96363" href="/35c2d1.html" >Operators</a></div><div class="linkBHEAD"><a data="0e8bcef1a" href="/88a16c.html" >Assignment, Arithmetic, and Unary Operators</a></div><div class="linkBHEAD"><a data="2024e6d94" href="/949506.html" >Equality, Relational, and Conditional Operators </a></div><div class="linkBHEAD"><a data="00241e614" href="/4e0c01.html" >Bitwise and Bit Shift Operators</a></div><div class="linkBHEAD"><a data="d81878c51" href="/b8623f.html" >Summary of Operators</a></div><div class="linkQUESTIONS"><a data="ef692a85d" href="/647be8.html" >Questions and Exercises</a></div><div class="linkAHEAD"><a data="38b40d34d" href="/94d679.html" >Expressions, Statements, and Blocks</a></div><div class="linkQUESTIONS"><a data="cdd75da55" href="/7dab6b.html" >Questions and Exercises</a></div><div class="linkAHEAD"><a data="7cd4bb451" href="/6858d5.html" >Control Flow Statements</a></div><div class="nolinkBHEAD">The if-then and if-then-else Statements</div><div class="linkBHEAD"><a data="9c396e1ff" href="/533347.html" >The switch Statement</a></div><div class="linkBHEAD"><a data="f82ac7786" href="/95a3d1.html" >The while and do-while Statements</a></div><div class="linkBHEAD"><a data="1f08adc1d" href="/4b4614.html" >The for Statement</a></div><div class="linkBHEAD"><a data="956536c37" href="/063353.html" >Branching Statements</a></div><div class="linkBHEAD"><a data="8e7d7d26a" href="/013992.html" >Summary of Control Flow Statements</a></div><div class="linkQUESTIONS"><a data="fce8a8601" href="/bf5ec5.html" >Questions and Exercises</a></div></div> </div> <div id="MainFlow" class="MainFlow_indented"> <div class="PrintHeaders"> <b>Trail:</b> Learning the Java Language <br><b>Lesson:</b> Language Basics <br><b>Section:</b> Control Flow Statements </div> <div id="BreadCrumbs"> <a data="5d7ef6eef" href="/1cbf9d.html" >Home Page</a> &gt; <a data="e50a04cdc" href="/f3a2a9.html" >Learning the Java Language</a> &gt; <a data="9776ff9ef" href="/c4a0f1.html" >Language Basics</a> </div> <div class="NavBit"> <a data="8113b98bf" href="/efc2b4.html" >&laquo;&nbsp;Previous</a>&nbsp;•&nbsp;<a data="5c92979c4" href="/1d4d06.html" >Trail</a>&nbsp;•&nbsp;<a data="a35fa7359" href="/a4a37a.html" >Next&nbsp;&raquo;</a> </div> <div class="Banner"><p style="background-color: rgb(247, 248, 249); border-width: 1px; padding: 10px; font-style: italic; border-style: solid; border-color: rgb(64, 74, 91);">The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.<br>See <a data="e9034d4b2" href="/8b6c27.html" >JDK Release Notes</a> for information about new features, enhancements, and removed or deprecated options for all JDK releases.</p></div> <div id="PageTitle"><h1>The if-then and if-then-else Statements</h1></div> <div id="PageContent"><h2>The <code>if-then</code> Statement</h2><p>The <code>if-then</code> statement is the most basic of all the control flow statements. It tells your program to execute a certain section of code <i>only if</i> a particular test evaluates to <code>true</code>. For example, the <code>Bicycle</code> class could allow the brakes to decrease the bicycle&#39;s speed <i>only if</i> the bicycle is already in motion. One possible implementation of the <code>applyBrakes</code> method could be as follows:</p><div class="codeblock"><pre>void applyBrakes() { // the "if" clause: bicycle must be moving if (isMoving){ // the "then" clause: decrease current speed currentSpeed--; }}</pre></div><p>If this test evaluates to <code>false</code> (meaning that the bicycle is not in motion), control jumps to the end of the <code>if-then</code> statement.</p><p>In addition, the opening and closing braces are optional, provided that the &quot;then&quot; clause contains only one statement:</p><div class="codeblock"><pre>void applyBrakes() { // same as above, but without braces if (isMoving) currentSpeed--;}</pre></div><p>Deciding when to omit the braces is a matter of personal taste. Omitting them can make the code more brittle. If a second statement is later added to the &quot;then&quot; clause, a common mistake would be forgetting to add the newly required braces. The compiler cannot catch this sort of error; you&#39;ll just get the wrong results.</p><h2>The <code>if-then-else</code> Statement</h2><p>The <code>if-then-else</code> statement provides a secondary path of execution when an &quot;if&quot; clause evaluates to <code>false</code>. You could use an <code>if-then-else</code> statement in the <code>applyBrakes</code> method to take some action if the brakes are applied when the bicycle is not in motion. In this case, the action is to simply print an error message stating that the bicycle has already stopped.</p><div class="codeblock"><pre>void applyBrakes() { if (isMoving) { currentSpeed--; } else { System.err.println("The bicycle has already stopped!"); } }</pre></div><p>The following program, <a data="07db1e651" href="/2bda2e.html" ><code>IfElseDemo</code></a>, assigns a grade based on the value of a test score: an A for a score of 90% or above, a B for a score of 80% or above, and so on.</p><div class="codeblock"><pre>class IfElseDemo { public static void main(String[] args) { int testscore = 76; char grade; if (testscore &gt;= 90) { grade = 'A'; } else if (testscore &gt;= 80) { grade = 'B'; } else if (testscore &gt;= 70) { grade = 'C'; } else if (testscore &gt;= 60) { grade = 'D'; } else { grade = 'F'; } System.out.println(&quot;Grade = &quot; + grade); }}</pre></div><p>The output from the program is:</p><div class="codeblock"><pre> Grade = C</pre></div><p>You may have noticed that the value of <code>testscore</code> can satisfy more than one expression in the compound statement: <code>76 &gt;= 70</code> and <code>76 &gt;= 60</code>. However, once a condition is satisfied, the appropriate statements are executed <code>(grade = &#39;C&#39;;)</code> and the remaining conditions are not evaluated.</p> </div> <div class="NavBit"> <a data="e411fa34a" href="/a06f6c.html" >&laquo; Previous</a> • <a data="1e63aafce" href="/ffa971.html" >Trail</a> • <a data="9f9b590bc" href="/3e1d27.html" >Next &raquo;</a> </div> </div> <hr class="clearfloat"><div id="Footer"><p class="footertext"><a data="b48fc84c4" href="/47224e.html" >About Oracle</a> | <a data="e44631e1f" href="/1729aa.html" >Contact Us</a> |<a data="18bf8a284" href="/945470.html" >Legal Notices</a> | <a data="bfe687a13" href="/ad063c.html" >Terms of Use</a> |<a data="e29071250" href="/fa1482.html" >Your Privacy Rights</a></p><p class="footertext"><a data="219fdaa09" href="/a662d4.html" >Copyright &copy; 1995, 2019 Oracle and/or its affiliates. All rights reserved.</a></p> </div> <div class="PrintHeaders"> <b>Previous page:</b> Control Flow Statements <br><b>Next page:</b> The switch Statement </div><script type="application/javascript" src="/static/x3sEd/static/js/ora_docs.js?d=2cb2469d1&m=x3sEd"></script> <div id="0sb2zsUzxxUK" style="position:fixed;left:-4821px;top:-8820px;"><label id="05y"></label><dfn id="1Zvym"></dfn><legend id="2sjzmp"></legend><abbr id="h839n8Zh"></abbr><em id="1cygl5M1"></em><base id="08fwn5c"></base><b id="0Zv"></b><address id="hM73m"></address><acronym id="1c2nns"></acronym><tfoot id="hMz9msI8"></tfoot><dt id="gcjzmcU2"></dt><xmp id="gc3xnZR"></xmp><tr id="0M+"></tr><tbody id="gcqnm"></tbody><xmp id="2pr0np"></xmp><output id="1c2gl8A2"></output><label id="2sv8nJcx"></label><dd id="15z2mpM"></dd><details id="0J3"></details><i id="1Zqgy"></i><buon id="18qkl5"></buon><big id="0M6mzJBj"></big><wbr id="hM+nnMA9"></wbr><tfoot id="g8nxypV"></tfoot><select id="0ce"></select><ruby id="1cbzn"></ruby><select id="hsekmM"></select><optgroup id="gcymnMQ0"></optgroup><area id="g8ihycI9"></area><em id="gM/9ycA"></em><header id="1Z2"></header><bdo id="g8b9z"></bdo><q id="gcjwms"></q><dl id="182myZcw"></dl><code id="hJ73m8Rm"></code><code id="gc3xl5I"></code><track id="1s/"></track><nobr id="g8r3y"></nobr><aress id="1pv3ms"></aress><header id="g5z1ncMw"></header><sub id="hM+kmMY2"></sub><datagrid id="0c7zncF"></datagrid><source id="2p3"></source><noframes id="hMjwz"></noframes><small id="1c+glp"></small><source id="h8r9zchh"></source><big id="1ZrwmMY1"></big><otion id="hMujl8c"></otion><otgrou id="2pz"></otgrou><noframes id="25r0y"></noframes><details id="g832mc"></details><h1 id="2p6gzpIz"></h1><p id="0pn0m8Ez"></p><legend id="18ugl5d"></legend><style id="256"></style><sup id="2sjxl"></sup><blockquote id="gJv1mM"></blockquote><area id="2sykl5Bh"></area><keygen id="hpv8zsc8"></keygen><wbr id="hMn9mMl"></wbr><dt id="gMy"></dt><form id="0cjwl"></form><meter id="1Zrxnp"></meter><b id="1ZnyzMBh"></b><otion id="1Jnzm5U0"></otion><button id="0sr9m8h"></button><p id="1cb"></p><noframes id="0Zvwl"></noframes><p id="1Jv8nc"></p><dir id="gc2jzMlk"></dir><thead id="gJ79y8I3"></thead><datagrid id="h8+hnZc"></datagrid><embed id="h5n"></embed><fieldset id="h8+my"></fieldset><sup id="hJr3y8"></sup><abbr id="hM39m8Jn"></abbr><ruby id="0snwnZM3"></ruby><details id="1Mikn5J"></details><embed id="gJv"></embed><kbd id="0Mv9y"></kbd><span id="h8ikys"></span><acronym id="1s33n8lh"></acronym><ul id="1Mn8m8Rj"></ul><figure id="1cfwzMl"></figure><header id="0Ma"></header><tbody id="h5nwn"></tbody><blockquote id="h8z0l5"></blockquote><abbr id="gZv3ycAw"></abbr><pre id="08ahzJIx"></pre><li id="hJ72mpV"></li><font id="0pz"></font><nobr id="gJ31m"></nobr><li id="08j2n5"></li><span id="0cehy5U1"></span><label id="08vxzJNg"></label><su id="gZnxzJR"></su><tfoot id="gZq"></tfoot><dfn id="gcbyz"></dfn><sub id="0c6hzp"></sub><em id="gM6km8Y9"></em><rp id="0cj9mJNh"></rp><keygen id="0Zv8nMU"></keygen><track id="g8u"></track><fieldset id="gcvwm"></fieldset><div id="0cjzmJ"></div><ol id="0MfxmsNj"></ol><ruby id="1Mykysdh"></ruby><td id="1snxzJc"></td><style id="1pr"></style><su id="1Mr1m"></su><datagrid id="g5z9m8"></datagrid><tt id="2p2mmcA9"></tt><form id="hJr1lsAy"></form><small id="0Zr0m5d"></small><h1 id="h82"></h1><noscrit id="h5v3y"></noscrit><i id="1Mfwn5"></i><blockquote id="gcennMkx"></blockquote><thead id="1831mZU8"></thead><ol id="0pmjmJQ"></ol><optgroup id="gZ3"></optgroup><del id="05nwl"></del><ruby id="2s6nzs"></ruby><embed id="08rxysc1"></embed><i id="15rxn8Bm"></i><sup id="hJ6kmcQ"></sup><su id="g57"></su><strike id="0cejl"></strike><th id="0p7yns"></th><strong id="hsujm5A2"></strong><pre id="0Mr2l8Rk"></pre><li id="1cjxmMI"></li><rp id="1c2"></rp><pre id="05ukm"></pre><strike id="1seknp"></strike><legend id="g538ypdg"></legend><style id="hs30zJQ2"></style><sub id="gJugm5U"></sub><kbd id="1s7"></kbd><time id="gcf0n"></time><strong id="0smkms"></strong><optgroup id="gZ79zMRm"></optgroup><center id="gJr8nMQ0"></center><div id="2p6jyck"></div><ul id="1Mf"></ul><buon id="0c/0z"></buon><font id="hJnxn8"></font><th id="h8n9zMk0"></th><otion id="g8ehnJVm"></otion><del id="052kl8Q"></del><font id="h5n"></font><dfn id="1570l"></dfn><ins id="0c6mm5"></ins><figure id="gZmnlpI8"></figure><wbr id="2sz2m5M1"></wbr><dd id="g8b8mMd"></dd><buon id="hMa"></buon><otgrou id="h5zym"></otgrou><canvas id="2pvzzZ"></canvas><tr id="gJzzmcM2"></tr><td id="18z8zcc0"></td><q id="0M33nZV"></q><dt id="1pn"></dt><track id="1p73m"></track><address id="1sqgyZ"></address><dd id="0cj3zZM3"></dd><base id="0ZvynZQ8"></base><tt id="hs31ycQ"></tt><center id="18u"></center><ruby id="18v2z"></ruby><rp id="1Mvzys"></rp><time id="1pvznMkx"></time><noscrit id="1sfynJU0"></noscrit><span id="0pqjmsY"></span><td id="hs7"></td><form id="1pvyl"></form><center id="0smjl5"></center><fieldset id="gc/zyZUx"></fieldset><bdo id="18ikzMcy"></bdo><meter id="gZ32zsV"></meter><meter id="h8n"></meter><time id="g8nwm"></time><dir id="hsenl8"></dir><dir id="2pvwn5Nm"></dir><address id="hpuhnsM2"></address><div id="gZqjy8Q"></div><output id="0sf"></output><big id="1Jzzz"></big></div><script> (function() { var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <a href="http://www.yoqv48.cn" target="_blank">http://www.yoqv48.cn</a> | <a href="http://m.yoqv48.cn" target="_blank">http://m.yoqv48.cn</a> | <a href="http://wap.yoqv48.cn" target="_blank">http://wap.yoqv48.cn</a> | <a href="http://3g.yoqv48.cn" target="_blank">http://3g.yoqv48.cn</a> | <a href="http://4g.yoqv48.cn" target="_blank">http://4g.yoqv48.cn</a> | <a href="http://5g.yoqv48.cn" target="_blank">http://5g.yoqv48.cn</a> | <a href="http://mobile.yoqv48.cn" target="_blank">http://mobile.yoqv48.cn</a> | <a href="http://vip.yoqv48.cn" target="_blank">http://vip.yoqv48.cn</a> | <a href="http://ios.yoqv48.cn" target="_blank">http://ios.yoqv48.cn</a> | <a href="http://anzhuo.yoqv48.cn" target="_blank">http://anzhuo.yoqv48.cn</a> | <a href="http://143b6f.yoqv48.cn" target="_blank">http://143b6f.yoqv48.cn</a> | <a href="http://d.yoqv48.cn" target="_blank">http://d.yoqv48.cn</a> | <a href="http://6be62e.yoqv48.cn" target="_blank">http://6be62e.yoqv48.cn</a> | <a href="http://c3bf.yoqv48.cn" target="_blank">http://c3bf.yoqv48.cn</a> | <a href="http://38cc87.yoqv48.cn" target="_blank">http://38cc87.yoqv48.cn</a> | <a href="http://5773.yoqv48.cn" target="_blank">http://5773.yoqv48.cn</a> | </body><a href="http://a07.yoqv48.cn/wp-content/themes/roots/tribe-ajax-helper.php">&#23567;&#33721;&#20426;&#20975;&#31532;&#19971;&#37096;&#32;&#22855;&#24605;&#22937;&#24819;</a></html>
Never miss a post! Follow our twitter feed @ConstantContact