[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"site-config":3,"course-tree":6,"blog-categories":8,"blog:category:java:page:1":36},{"data":4},{"google_site_verification":5,"ga4_measurement_id":5,"site_name":5,"default_og_image":5,"twitter_handle":5},null,{"data":7},[],{"data":9},[10,16,21,26,31],{"name":11,"slug":12,"description":13,"post_count":14,"subcategories":15},"CSS","css","Learn CSS with practical tutorials and examples covering layouts, Flexbox, Grid, responsive design, typography, positioning, animations, and more.",1,[],{"name":17,"slug":18,"description":19,"post_count":14,"subcategories":20},"HTML","html","Learn HTML with practical tutorials and examples for beginners. Explore HTML tags, elements, attributes, links, images, forms, semantic HTML, and more with clear explanations and real code examples.",[],{"name":22,"slug":23,"description":24,"post_count":14,"subcategories":25},"WPF","wpf","Learn WPF with practical tutorials and examples covering XAML, windows, controls, layouts, data binding, MVVM, commands, styles, templates, debugging, and modern WPF UI development.",[],{"name":27,"slug":28,"description":29,"post_count":14,"subcategories":30},"Python","python","Learn Python with practical tutorials covering strings, lists, functions, exceptions, files, packages, virtual environments, modules, classes, and beginner programming concepts.",[],{"name":32,"slug":33,"description":34,"post_count":14,"subcategories":35},"Java","java","Learn Java with practical tutorials and examples for beginners. Explore Java syntax, variables, data types, classes, objects, methods, inheritance, exceptions, collections, and more with clear explanations and real code examples.",[],{"data":37,"links":185,"meta":187,"category":199},[38],{"id":39,"title":40,"slug":41,"excerpt":42,"author":43,"categories":49,"featured_image":51,"reading_time_minutes":54,"meta_title":5,"meta_description":42,"og_image":5,"meta_robots":55,"schema_type":56,"faq_json":5,"video_url":5,"toc_json":57,"published_at":184,"updated_at":184},5,"How to Convert String to Int Java: parseInt(), valueOf() & More","how-to-convert-string-to-int-java-parseint-valueof-more","Learn how to convert string to int Java the right way with parseInt(), valueOf(), radix conversion, and safe NumberFormatException handling.",{"slug":44,"display_name":45,"job_title":5,"short_bio":5,"expertise_tags":46,"headshot":5,"long_bio":5,"credentials":5,"twitter_url":5,"linkedin_url":5,"github_url":5,"personal_website_url":5,"other_sameas_urls":5,"topics":47,"posts":48},"badar-khalil","Badar Khalil",[],[],[],[50],{"name":32,"slug":33},{"url":52,"alt_text":53,"width":5,"height":5},"\u002Fstorage\u002Fmedia\u002F01M23RNHPZVQHMX2DYD3YKQJF1.webp","String to int conversion in Java",10,[],"Article",[58,63,76,88,100,112,132,136,140,156,160],{"id":59,"text":60,"level":61,"children":62},"the-quickest-way-to-convert-string-to-int-java-values","The Quickest Way to Convert String to Int Java Values",2,[],{"id":64,"text":65,"level":61,"children":66},"convert-string-to-int-using-integerparseint","Convert String to Int Using Integer.parseInt()",[67,72],{"id":68,"text":69,"level":70,"children":71},"basic-parseint-syntax","Basic parseInt() Syntax",3,[],{"id":73,"text":74,"level":70,"children":75},"converting-user-input-to-an-int","Converting User Input to an Int",[],{"id":77,"text":78,"level":61,"children":79},"convert-string-to-integer-using-integervalueof","Convert String to Integer Using Integer.valueOf()",[80,84],{"id":81,"text":82,"level":70,"children":83},"how-integervalueof-works","How Integer.valueOf() Works",[],{"id":85,"text":86,"level":70,"children":87},"parseint-vs-valueof","parseInt() vs valueOf()",[],{"id":89,"text":90,"level":61,"children":91},"convert-a-string-using-a-different-number-base","Convert a String Using a Different Number Base",[92,96],{"id":93,"text":94,"level":70,"children":95},"convert-binary-octal-or-hexadecimal-strings-with-a-radix","Convert Binary, Octal, or Hexadecimal Strings with a Radix",[],{"id":97,"text":98,"level":70,"children":99},"when-to-use-integerdecode","When to Use Integer.decode()",[],{"id":101,"text":102,"level":61,"children":103},"handle-invalid-strings-with-numberformatexception","Handle Invalid Strings with NumberFormatException",[104,108],{"id":105,"text":106,"level":70,"children":107},"what-happens-when-a-string-is-not-a-valid-integer","What Happens When a String Is Not a Valid Integer",[],{"id":109,"text":110,"level":70,"children":111},"safely-convert-user-or-external-input","Safely Convert User or External Input",[],{"id":113,"text":114,"level":61,"children":115},"common-string-to-int-problems-in-java","Common String-to-Int Problems in Java",[116,120,124,128],{"id":117,"text":118,"level":70,"children":119},"leading-and-trailing-whitespace","Leading and Trailing Whitespace",[],{"id":121,"text":122,"level":70,"children":123},"null-strings","Null Strings",[],{"id":125,"text":126,"level":70,"children":127},"decimal-and-formatted-numbers","Decimal and Formatted Numbers",[],{"id":129,"text":130,"level":70,"children":131},"values-outside-the-int-range","Values Outside the int Range",[],{"id":133,"text":134,"level":61,"children":135},"which-string-to-int-java-method-should-you-use","Which String to Int Java Method Should You Use?",[],{"id":137,"text":138,"level":61,"children":139},"common-mistakes-to-avoid-when-converting-string-to-int","Common Mistakes to Avoid When Converting String to Int",[],{"id":141,"text":142,"level":61,"children":143},"practical-examples-of-string-to-int-conversion","Practical Examples of String-to-Int Conversion",[144,148,152],{"id":145,"text":146,"level":70,"children":147},"convert-a-string-before-performing-arithmetic","Convert a String Before Performing Arithmetic",[],{"id":149,"text":150,"level":70,"children":151},"convert-multiple-string-values","Convert Multiple String Values",[],{"id":153,"text":154,"level":70,"children":155},"convert-a-string-safely-in-a-real-world-input-flow","Convert a String Safely in a Real-World Input Flow",[],{"id":157,"text":158,"level":61,"children":159},"wrapping-up","Wrapping Up",[],{"id":161,"text":162,"level":61,"children":163},"frequently-asked-questions-about-string-to-int-in-java","Frequently Asked Questions About String to Int in Java",[164,168,172,176,180],{"id":165,"text":166,"level":70,"children":167},"what-is-the-easiest-way-to-convert-a-string-to-int-in-java","What is the easiest way to convert a String to int in Java?",[],{"id":169,"text":170,"level":70,"children":171},"what-is-the-difference-between-parseint-and-valueof-in-java","What is the difference between parseInt() and valueOf() in Java?",[],{"id":173,"text":174,"level":70,"children":175},"how-do-i-convert-a-string-to-int-without-getting-numberformatexception","How do I convert a String to int without getting NumberFormatException?",[],{"id":177,"text":178,"level":70,"children":179},"can-i-convert-a-decimal-string-directly-to-an-int-in-java","Can I convert a decimal String directly to an int in Java?",[],{"id":181,"text":182,"level":70,"children":183},"how-do-i-convert-a-binary-or-hexadecimal-string-to-an-int-in-java","How do I convert a binary or hexadecimal String to an int in Java?",[],"2026-09-09T19:09:06+00:00",{"first":186,"last":186,"prev":5,"next":5},"http:\u002F\u002Fapp\u002Fapi\u002Fblog\u002Fcategory\u002Fjava?page=1",{"current_page":14,"from":14,"last_page":14,"links":188,"path":197,"per_page":198,"to":14,"total":14},[189,192,195],{"url":5,"label":190,"page":5,"active":191},"&laquo; Previous",false,{"url":186,"label":193,"page":14,"active":194},"1",true,{"url":5,"label":196,"page":5,"active":191},"Next &raquo;","http:\u002F\u002Fapp\u002Fapi\u002Fblog\u002Fcategory\u002Fjava",9,{"name":32,"slug":33,"description":34,"post_count":14,"parent":5,"meta_title":200,"meta_description":201,"canonical_url":202,"focus_keyword":203,"schema_type":204,"meta_robots":205,"og_image":5},"Java Tutorials & Guides for Beginners | WPFSharp","Learn Java with practical tutorials and examples covering syntax, variables, classes, objects, inheritance, exceptions, collections, and more.","https:\u002F\u002Fwpfsharp.com\u002Fcategory\u002Fjava\u002F","Java tutorials","CollectionPage",[]]